forked from containers/skopeo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the documentation of boolean flags
The Go behavior of boolean flags is as follows: Accepted values are --flag, which is the same as --flag=true, and --flag=false, which is the default (except for OptionalBoolFlag). --flag {false,true} is parsed as --flag=true with a non-option {false,true} argument. So, for almost all flags, document them just as --flag, not mentioning the [={false,true}] part, because users can just omit =true, or the whole flag instead of =false. OTOH, for tls-verify, document only the tls-verify={true,false} variant, because the primary use is tls-verify=false, and because tls-verify is not "the default", but equivalent to an explicit tls-verify=true (overriding registries.conf). Signed-off-by: Miloslav Trmač <[email protected]>
- Loading branch information
Showing
5 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters