Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ To upload file `logo.png` to remote folder `/my_images/demo`, execute:
# for Windows: .\upgit.exe logo.png -t /my_images/demo
```

FILE can be a local path or an `http(s)` URL (downloaded, then uploaded).

---

For more help, type `-h` argument
Expand Down
4 changes: 4 additions & 0 deletions crates/upgit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ pub struct Cli {
#[arg(short = 's', long = "size-limit")]
pub size_limit: Option<u64>,

/// User-Agent for http(s) FILE downloads
#[arg(long = "user-agent", value_name = "UA")]
pub user_agent: Option<String>,

/// Path to a TOML config file
#[arg(short, long, visible_alias = "config-file")]
pub config: Option<String>,
Expand Down
Loading
Loading