Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectedError ¶
type ExpectedError struct {
Err error
}
func (ExpectedError) Error ¶
func (e ExpectedError) Error() string
type Options ¶
type Options struct {
Parts uint `short:"p" long:"parts" value-name:"n" default:"2" description:"number of parts"`
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"`
UserAgent string `short:"a" long:"user-agent" choice:"chrome" choice:"firefox" choice:"safari" default:"chrome" description:"User-Agent header"`
BestMirror bool `short:"b" long:"best-mirror [...file|stdin]" description:"pickup the fastest mirror"`
AuthUser string `short:"u" long:"username" description:"basic http auth username"`
AuthPass string `long:"password" description:"basic http auth password"`
HeaderMap map[string]string `long:"header" value-name:"key:value" description:"arbitrary http header"`
Debug bool `long:"debug" description:"enable debug to stderr"`
Version bool `long:"version" description:"show version"`
}
Options struct, represents cmd line options
Click to show internal directories.
Click to hide internal directories.
