Document "--" to stop option parsing in help text + man page
This commit is contained in:
parent
dc2dc9f88c
commit
1e9d735406
@ -201,6 +201,10 @@ Options:
|
|||||||
: Use all-zero dummy master key. This options is only intended for
|
: Use all-zero dummy master key. This options is only intended for
|
||||||
automated testing as it does not provide any security.
|
automated testing as it does not provide any security.
|
||||||
|
|
||||||
|
**--**
|
||||||
|
: Stop option parsing. Helpful when CIPHERDIR may start with a
|
||||||
|
dash "-".
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
========
|
========
|
||||||
|
|
||||||
|
3
main.go
3
main.go
@ -48,6 +48,9 @@ Options:
|
|||||||
`, tlog.ProgramName, tlog.ProgramName)
|
`, tlog.ProgramName, tlog.ProgramName)
|
||||||
|
|
||||||
flagSet.PrintDefaults()
|
flagSet.PrintDefaults()
|
||||||
|
fmt.Print(` --
|
||||||
|
Stop option parsing
|
||||||
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// loadConfig loads the config file "args.config", prompting the user for the password
|
// loadConfig loads the config file "args.config", prompting the user for the password
|
||||||
|
Loading…
Reference in New Issue
Block a user