Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAliases ¶
ApplyAliases consolidates flags with aliases into a single source-of-truth flag. After calling this, the main flags will have their values set as follows:
- If the main flag was already set, it will keep its value.
- If it was not set, but an alias was, it will take the value of the first specified alias flag. This will set flag.Changed to true, as if it were specified manually.
- If none of the flags were set, the main flag will remain its default value.
Types ¶
Click to show internal directories.
Click to hide internal directories.