Skip to content

Commit c159d76

Browse files
committed
update readme docs
1 parent 51f4100 commit c159d76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ There are several options that are supported on the main app and subcommands and
601601
- `.footer(message)`: Set text to appear at the bottom of the help string.
602602
- `.footer(std::string())`: 🆕 Set a callback to generate a string that will appear at the end of the help string.
603603
- `.set_help_flag(name, message)`: Set the help flag name and message, returns a pointer to the created option.
604+
- `.set_version_flag(name, versionString or callback, help_message)`: 🆕 Set the version flag name and version string or callback and optional help message, returns a pointer to the created option.
604605
- `.set_help_all_flag(name, message)`: Set the help all flag name and message, returns a pointer to the created option. Expands subcommands.
605606
- `.failure_message(func)`: Set the failure message function. Two provided: `CLI::FailureMessage::help` and `CLI::FailureMessage::simple` (the default).
606607
- `.group(name)`: Set a group name, defaults to `"Subcommands"`. Setting `""` will be hide the subcommand.

0 commit comments

Comments
 (0)