Skip to content

Commit

Permalink
map -c for --certs-file and -s for --session
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jan 24, 2022
1 parent e662100 commit 1977b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Application Options:
-r, --max-retry=n max retry per each part, 0 for infinite (default: 10)
-t, --timeout=sec context timeout (default: 15)
-o, --output=filename user defined output
-c, --continue=state.json resume download from the last session
-s, --session=session.json path to saved session file (optional)
-a, --user-agent=[chrome|firefox|safari|edge|getparty] User-Agent header (default: chrome)
-b, --best-mirror pickup the fastest mirror
-q, --quiet quiet mode, no progress bars
Expand All @@ -43,9 +43,9 @@ Application Options:
--password= basic http auth password
-H, --header=key:value arbitrary http header
--no-check-cert don't validate the server's certificate
--certs-file=certs.crt root certificates to use when verifying server certificates
-c --certs-file=certs.crt root certificates to use when verifying server certificates
--debug enable debug to stderr
--version show version
-v --version show version
Help Options:
-h, --help show this help message
Expand Down
6 changes: 3 additions & 3 deletions getparty.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type Options struct {
MaxRetry uint `short:"r" long:"max-retry" value-name:"n" default:"10" description:"max retry per each part, 0 for infinite"`
Timeout uint `short:"t" long:"timeout" value-name:"sec" default:"15" description:"context timeout"`
OutFileName string `short:"o" long:"output" value-name:"filename" description:"user defined output"`
JSONFileName string `short:"c" long:"continue" value-name:"state.json" description:"resume download from the last session"`
JSONFileName string `short:"s" long:"session" value-name:"session.json" description:"path to saved session file (optional)"`
UserAgent string `short:"a" long:"user-agent" choice:"chrome" choice:"firefox" choice:"safari" choice:"edge" choice:"getparty" default:"chrome" description:"User-Agent header"`
BestMirror bool `short:"b" long:"best-mirror" description:"pickup the fastest mirror"`
Quiet bool `short:"q" long:"quiet" description:"quiet mode, no progress bars"`
Expand All @@ -92,9 +92,9 @@ type Options struct {
AuthPass string `long:"password" description:"basic http auth password"`
HeaderMap map[string]string `short:"H" long:"header" value-name:"key:value" description:"arbitrary http header"`
InsecureSkipVerify bool `long:"no-check-cert" description:"don't validate the server's certificate"`
CertsFileName string `long:"certs-file" value-name:"certs.crt" description:"root certificates to use when verifying server certificates"`
CertsFileName string `short:"c" long:"certs-file" value-name:"certs.crt" description:"root certificates to use when verifying server certificates"`
Debug bool `long:"debug" description:"enable debug to stderr"`
Version bool `long:"version" description:"show version"`
Version bool `short:"v" long:"version" description:"show version"`
}

type Cmd struct {
Expand Down

0 comments on commit 1977b6f

Please sign in to comment.