diff --git a/clap_complete/tests/snapshots/aliases.elvish b/clap_complete/tests/snapshots/aliases.elvish index eebe406d..d816e430 100644 --- a/clap_complete/tests/snapshots/aliases.elvish +++ b/clap_complete/tests/snapshots/aliases.elvish @@ -26,10 +26,10 @@ set edit:completion:arg-completer[my-app] = {|@words| cand -F 'cmd flag' cand --flag 'cmd flag' cand --flg 'cmd flag' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } ] $completions[$command] diff --git a/clap_complete/tests/snapshots/aliases.fish b/clap_complete/tests/snapshots/aliases.fish index 9c0c219b..c824ad69 100644 --- a/clap_complete/tests/snapshots/aliases.fish +++ b/clap_complete/tests/snapshots/aliases.fish @@ -1,4 +1,4 @@ complete -c my-app -s o -s O -l option -l opt -d 'cmd option' -r complete -c my-app -s f -s F -l flag -l flg -d 'cmd flag' -complete -c my-app -s h -l help -d 'Print help information' -complete -c my-app -s V -l version -d 'Print version information' +complete -c my-app -s h -l help -d 'Print help' +complete -c my-app -s V -l version -d 'Print version' diff --git a/clap_complete/tests/snapshots/aliases.ps1 b/clap_complete/tests/snapshots/aliases.ps1 index 76207207..7bc67b6a 100644 --- a/clap_complete/tests/snapshots/aliases.ps1 +++ b/clap_complete/tests/snapshots/aliases.ps1 @@ -29,10 +29,10 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { [CompletionResult]::new('-F', 'F', [CompletionResultType]::ParameterName, 'cmd flag') [CompletionResult]::new('--flag', 'flag', [CompletionResultType]::ParameterName, 'cmd flag') [CompletionResult]::new('--flg', 'flg', [CompletionResultType]::ParameterName, 'cmd flag') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } }) diff --git a/clap_complete/tests/snapshots/aliases.zsh b/clap_complete/tests/snapshots/aliases.zsh index b97cde41..403bbfe8 100644 --- a/clap_complete/tests/snapshots/aliases.zsh +++ b/clap_complete/tests/snapshots/aliases.zsh @@ -23,10 +23,10 @@ _my-app() { '-F[cmd flag]' \ '--flag[cmd flag]' \ '--flg[cmd flag]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ '::positional:' \ && ret=0 } diff --git a/clap_complete/tests/snapshots/basic.elvish b/clap_complete/tests/snapshots/basic.elvish index 2465d3ca..8d1f725e 100644 --- a/clap_complete/tests/snapshots/basic.elvish +++ b/clap_complete/tests/snapshots/basic.elvish @@ -20,16 +20,16 @@ set edit:completion:arg-completer[my-app] = {|@words| &'my-app'= { cand -c 'c' cand -v 'v' - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' cand test 'Subcommand' cand help 'Print this message or the help of the given subcommand(s)' } &'my-app;test'= { cand -d 'd' cand -c 'c' - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;help'= { cand test 'Subcommand' diff --git a/clap_complete/tests/snapshots/basic.fish b/clap_complete/tests/snapshots/basic.fish index 5a719a2a..43cd26d4 100644 --- a/clap_complete/tests/snapshots/basic.fish +++ b/clap_complete/tests/snapshots/basic.fish @@ -1,10 +1,10 @@ complete -c my-app -n "__fish_use_subcommand" -s c complete -c my-app -n "__fish_use_subcommand" -s v -complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information' +complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help' complete -c my-app -n "__fish_use_subcommand" -f -a "test" -d 'Subcommand' complete -c my-app -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' complete -c my-app -n "__fish_seen_subcommand_from test" -s d complete -c my-app -n "__fish_seen_subcommand_from test" -s c -complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help information' +complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from help" -f -a "test" -d 'Subcommand' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' diff --git a/clap_complete/tests/snapshots/basic.ps1 b/clap_complete/tests/snapshots/basic.ps1 index 89aae1dc..5cb77fa0 100644 --- a/clap_complete/tests/snapshots/basic.ps1 +++ b/clap_complete/tests/snapshots/basic.ps1 @@ -23,8 +23,8 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { 'my-app' { [CompletionResult]::new('-c', 'c', [CompletionResultType]::ParameterName, 'c') [CompletionResult]::new('-v', 'v', [CompletionResultType]::ParameterName, 'v') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') [CompletionResult]::new('test', 'test', [CompletionResultType]::ParameterValue, 'Subcommand') [CompletionResult]::new('help', 'help', [CompletionResultType]::ParameterValue, 'Print this message or the help of the given subcommand(s)') break @@ -32,8 +32,8 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { 'my-app;test' { [CompletionResult]::new('-d', 'd', [CompletionResultType]::ParameterName, 'd') [CompletionResult]::new('-c', 'c', [CompletionResultType]::ParameterName, 'c') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;help' { diff --git a/clap_complete/tests/snapshots/basic.zsh b/clap_complete/tests/snapshots/basic.zsh index 56959696..217ed938 100644 --- a/clap_complete/tests/snapshots/basic.zsh +++ b/clap_complete/tests/snapshots/basic.zsh @@ -17,8 +17,8 @@ _my-app() { _arguments "${_arguments_options[@]}" \ '-c[]' \ '(-c)-v[]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ ":: :_my-app_commands" \ "*::: :->my-app" \ && ret=0 @@ -32,8 +32,8 @@ _my-app() { _arguments "${_arguments_options[@]}" \ '*-d[]' \ '-c[]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (help) diff --git a/clap_complete/tests/snapshots/feature_sample.elvish b/clap_complete/tests/snapshots/feature_sample.elvish index afb35cf0..77615a04 100644 --- a/clap_complete/tests/snapshots/feature_sample.elvish +++ b/clap_complete/tests/snapshots/feature_sample.elvish @@ -22,19 +22,19 @@ set edit:completion:arg-completer[my-app] = {|@words| cand -C 'some config file' cand --config 'some config file' cand --conf 'some config file' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' cand test 'tests things' cand help 'Print this message or the help of the given subcommand(s)' } &'my-app;test'= { cand --case 'the case to test' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;help'= { cand test 'tests things' diff --git a/clap_complete/tests/snapshots/feature_sample.fish b/clap_complete/tests/snapshots/feature_sample.fish index b2126b21..34fd0aa3 100644 --- a/clap_complete/tests/snapshots/feature_sample.fish +++ b/clap_complete/tests/snapshots/feature_sample.fish @@ -1,10 +1,10 @@ complete -c my-app -n "__fish_use_subcommand" -s c -s C -l config -l conf -d 'some config file' -complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version' complete -c my-app -n "__fish_use_subcommand" -f -a "test" -d 'tests things' complete -c my-app -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' complete -c my-app -n "__fish_seen_subcommand_from test" -l case -d 'the case to test' -r -complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from test" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from test" -s V -l version -d 'Print version' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from help" -f -a "test" -d 'tests things' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' diff --git a/clap_complete/tests/snapshots/feature_sample.ps1 b/clap_complete/tests/snapshots/feature_sample.ps1 index 679d431a..6f6dc5b9 100644 --- a/clap_complete/tests/snapshots/feature_sample.ps1 +++ b/clap_complete/tests/snapshots/feature_sample.ps1 @@ -25,20 +25,20 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { [CompletionResult]::new('-C', 'C', [CompletionResultType]::ParameterName, 'some config file') [CompletionResult]::new('--config', 'config', [CompletionResultType]::ParameterName, 'some config file') [CompletionResult]::new('--conf', 'conf', [CompletionResultType]::ParameterName, 'some config file') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') [CompletionResult]::new('test', 'test', [CompletionResultType]::ParameterValue, 'tests things') [CompletionResult]::new('help', 'help', [CompletionResultType]::ParameterValue, 'Print this message or the help of the given subcommand(s)') break } 'my-app;test' { [CompletionResult]::new('--case', 'case', [CompletionResultType]::ParameterName, 'the case to test') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;help' { diff --git a/clap_complete/tests/snapshots/feature_sample.zsh b/clap_complete/tests/snapshots/feature_sample.zsh index 4bc3c3aa..3b4a7b64 100644 --- a/clap_complete/tests/snapshots/feature_sample.zsh +++ b/clap_complete/tests/snapshots/feature_sample.zsh @@ -19,10 +19,10 @@ _my-app() { '*-C[some config file]' \ '*--config[some config file]' \ '*--conf[some config file]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ '::file -- some input file:_files' \ '::choice:(first second)' \ ":: :_my-app_commands" \ @@ -37,10 +37,10 @@ _my-app() { (test) _arguments "${_arguments_options[@]}" \ '--case=[the case to test]: : ' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ && ret=0 ;; (help) diff --git a/clap_complete/tests/snapshots/quoting.elvish b/clap_complete/tests/snapshots/quoting.elvish index 95680827..2f037969 100644 --- a/clap_complete/tests/snapshots/quoting.elvish +++ b/clap_complete/tests/snapshots/quoting.elvish @@ -24,10 +24,10 @@ set edit:completion:arg-completer[my-app] = {|@words| cand --backslash 'Avoid ''\n''' cand --brackets 'List packages [filter]' cand --expansions 'Execute the shell command with $SHELL' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' cand cmd-single-quotes 'Can be ''always'', ''auto'', or ''never''' cand cmd-double-quotes 'Can be "always", "auto", or "never"' cand cmd-backticks 'For more information see `echo test`' @@ -37,28 +37,28 @@ set edit:completion:arg-completer[my-app] = {|@words| cand help 'Print this message or the help of the given subcommand(s)' } &'my-app;cmd-single-quotes'= { - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;cmd-double-quotes'= { - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;cmd-backticks'= { - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;cmd-backslash'= { - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;cmd-brackets'= { - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;cmd-expansions'= { - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } &'my-app;help'= { cand cmd-single-quotes 'Can be ''always'', ''auto'', or ''never''' diff --git a/clap_complete/tests/snapshots/quoting.fish b/clap_complete/tests/snapshots/quoting.fish index cad4af73..26eed1bd 100644 --- a/clap_complete/tests/snapshots/quoting.fish +++ b/clap_complete/tests/snapshots/quoting.fish @@ -4,8 +4,8 @@ complete -c my-app -n "__fish_use_subcommand" -l backticks -d 'For more informat complete -c my-app -n "__fish_use_subcommand" -l backslash -d 'Avoid \'\\n\'' complete -c my-app -n "__fish_use_subcommand" -l brackets -d 'List packages [filter]' complete -c my-app -n "__fish_use_subcommand" -l expansions -d 'Execute the shell command with $SHELL' -complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version' complete -c my-app -n "__fish_use_subcommand" -f -a "cmd-single-quotes" -d 'Can be \'always\', \'auto\', or \'never\'' complete -c my-app -n "__fish_use_subcommand" -f -a "cmd-double-quotes" -d 'Can be "always", "auto", or "never"' complete -c my-app -n "__fish_use_subcommand" -f -a "cmd-backticks" -d 'For more information see `echo test`' @@ -13,12 +13,12 @@ complete -c my-app -n "__fish_use_subcommand" -f -a "cmd-backslash" -d 'Avoid \' complete -c my-app -n "__fish_use_subcommand" -f -a "cmd-brackets" -d 'List packages [filter]' complete -c my-app -n "__fish_use_subcommand" -f -a "cmd-expansions" -d 'Execute the shell command with $SHELL' complete -c my-app -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' -complete -c my-app -n "__fish_seen_subcommand_from cmd-single-quotes" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from cmd-double-quotes" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from cmd-backticks" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from cmd-backslash" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from cmd-brackets" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from cmd-expansions" -s h -l help -d 'Print help information' +complete -c my-app -n "__fish_seen_subcommand_from cmd-single-quotes" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from cmd-double-quotes" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from cmd-backticks" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from cmd-backslash" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from cmd-brackets" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from cmd-expansions" -s h -l help -d 'Print help' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from cmd-single-quotes; and not __fish_seen_subcommand_from cmd-double-quotes; and not __fish_seen_subcommand_from cmd-backticks; and not __fish_seen_subcommand_from cmd-backslash; and not __fish_seen_subcommand_from cmd-brackets; and not __fish_seen_subcommand_from cmd-expansions; and not __fish_seen_subcommand_from help" -f -a "cmd-single-quotes" -d 'Can be \'always\', \'auto\', or \'never\'' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from cmd-single-quotes; and not __fish_seen_subcommand_from cmd-double-quotes; and not __fish_seen_subcommand_from cmd-backticks; and not __fish_seen_subcommand_from cmd-backslash; and not __fish_seen_subcommand_from cmd-brackets; and not __fish_seen_subcommand_from cmd-expansions; and not __fish_seen_subcommand_from help" -f -a "cmd-double-quotes" -d 'Can be "always", "auto", or "never"' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from cmd-single-quotes; and not __fish_seen_subcommand_from cmd-double-quotes; and not __fish_seen_subcommand_from cmd-backticks; and not __fish_seen_subcommand_from cmd-backslash; and not __fish_seen_subcommand_from cmd-brackets; and not __fish_seen_subcommand_from cmd-expansions; and not __fish_seen_subcommand_from help" -f -a "cmd-backticks" -d 'For more information see `echo test`' diff --git a/clap_complete/tests/snapshots/quoting.ps1 b/clap_complete/tests/snapshots/quoting.ps1 index 28662baf..57b6691a 100644 --- a/clap_complete/tests/snapshots/quoting.ps1 +++ b/clap_complete/tests/snapshots/quoting.ps1 @@ -27,10 +27,10 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { [CompletionResult]::new('--backslash', 'backslash', [CompletionResultType]::ParameterName, 'Avoid ''\n''') [CompletionResult]::new('--brackets', 'brackets', [CompletionResultType]::ParameterName, 'List packages [filter]') [CompletionResult]::new('--expansions', 'expansions', [CompletionResultType]::ParameterName, 'Execute the shell command with $SHELL') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') [CompletionResult]::new('cmd-single-quotes', 'cmd-single-quotes', [CompletionResultType]::ParameterValue, 'Can be ''always'', ''auto'', or ''never''') [CompletionResult]::new('cmd-double-quotes', 'cmd-double-quotes', [CompletionResultType]::ParameterValue, 'Can be "always", "auto", or "never"') [CompletionResult]::new('cmd-backticks', 'cmd-backticks', [CompletionResultType]::ParameterValue, 'For more information see `echo test`') @@ -41,33 +41,33 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { break } 'my-app;cmd-single-quotes' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;cmd-double-quotes' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;cmd-backticks' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;cmd-backslash' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;cmd-brackets' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;cmd-expansions' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } 'my-app;help' { diff --git a/clap_complete/tests/snapshots/quoting.zsh b/clap_complete/tests/snapshots/quoting.zsh index d8d9c21b..4afe4438 100644 --- a/clap_complete/tests/snapshots/quoting.zsh +++ b/clap_complete/tests/snapshots/quoting.zsh @@ -21,10 +21,10 @@ _my-app() { '--backslash[Avoid '\''\\n'\'']' \ '--brackets[List packages \[filter\]]' \ '--expansions[Execute the shell command with $SHELL]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ ":: :_my-app_commands" \ "*::: :->my-app" \ && ret=0 @@ -36,38 +36,38 @@ _my-app() { case $line[1] in (cmd-single-quotes) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (cmd-double-quotes) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (cmd-backticks) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (cmd-backslash) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (cmd-brackets) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (cmd-expansions) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ && ret=0 ;; (help) diff --git a/clap_complete/tests/snapshots/special_commands.elvish b/clap_complete/tests/snapshots/special_commands.elvish index e60f9591..dcc59b68 100644 --- a/clap_complete/tests/snapshots/special_commands.elvish +++ b/clap_complete/tests/snapshots/special_commands.elvish @@ -22,10 +22,10 @@ set edit:completion:arg-completer[my-app] = {|@words| cand -C 'some config file' cand --config 'some config file' cand --conf 'some config file' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' cand test 'tests things' cand some_cmd 'tests other things' cand some-cmd-with-hyphens 'some-cmd-with-hyphens' @@ -34,29 +34,29 @@ set edit:completion:arg-completer[my-app] = {|@words| } &'my-app;test'= { cand --case 'the case to test' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;some_cmd'= { cand --config 'the other case to test' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;some-cmd-with-hyphens'= { - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;some-hidden-cmd'= { - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;help'= { cand test 'tests things' diff --git a/clap_complete/tests/snapshots/special_commands.fish b/clap_complete/tests/snapshots/special_commands.fish index d1d58fe3..84a370b4 100644 --- a/clap_complete/tests/snapshots/special_commands.fish +++ b/clap_complete/tests/snapshots/special_commands.fish @@ -1,21 +1,21 @@ complete -c my-app -n "__fish_use_subcommand" -s c -s C -l config -l conf -d 'some config file' -complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version' complete -c my-app -n "__fish_use_subcommand" -f -a "test" -d 'tests things' complete -c my-app -n "__fish_use_subcommand" -f -a "some_cmd" -d 'tests other things' complete -c my-app -n "__fish_use_subcommand" -f -a "some-cmd-with-hyphens" complete -c my-app -n "__fish_use_subcommand" -f -a "some-hidden-cmd" complete -c my-app -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' complete -c my-app -n "__fish_seen_subcommand_from test" -l case -d 'the case to test' -r -complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from test" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from test" -s V -l version -d 'Print version' complete -c my-app -n "__fish_seen_subcommand_from some_cmd" -l config -d 'the other case to test' -r -complete -c my-app -n "__fish_seen_subcommand_from some_cmd" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from some_cmd" -s V -l version -d 'Print version information' -complete -c my-app -n "__fish_seen_subcommand_from some-cmd-with-hyphens" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from some-cmd-with-hyphens" -s V -l version -d 'Print version information' -complete -c my-app -n "__fish_seen_subcommand_from some-hidden-cmd" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from some-hidden-cmd" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_seen_subcommand_from some_cmd" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from some_cmd" -s V -l version -d 'Print version' +complete -c my-app -n "__fish_seen_subcommand_from some-cmd-with-hyphens" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from some-cmd-with-hyphens" -s V -l version -d 'Print version' +complete -c my-app -n "__fish_seen_subcommand_from some-hidden-cmd" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from some-hidden-cmd" -s V -l version -d 'Print version' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from some-cmd-with-hyphens; and not __fish_seen_subcommand_from some-hidden-cmd; and not __fish_seen_subcommand_from help" -f -a "test" -d 'tests things' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from some-cmd-with-hyphens; and not __fish_seen_subcommand_from some-hidden-cmd; and not __fish_seen_subcommand_from help" -f -a "some_cmd" -d 'tests other things' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from some-cmd-with-hyphens; and not __fish_seen_subcommand_from some-hidden-cmd; and not __fish_seen_subcommand_from help" -f -a "some-cmd-with-hyphens" diff --git a/clap_complete/tests/snapshots/special_commands.ps1 b/clap_complete/tests/snapshots/special_commands.ps1 index 81c70160..f9e6a9da 100644 --- a/clap_complete/tests/snapshots/special_commands.ps1 +++ b/clap_complete/tests/snapshots/special_commands.ps1 @@ -25,10 +25,10 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { [CompletionResult]::new('-C', 'C', [CompletionResultType]::ParameterName, 'some config file') [CompletionResult]::new('--config', 'config', [CompletionResultType]::ParameterName, 'some config file') [CompletionResult]::new('--conf', 'conf', [CompletionResultType]::ParameterName, 'some config file') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') [CompletionResult]::new('test', 'test', [CompletionResultType]::ParameterValue, 'tests things') [CompletionResult]::new('some_cmd', 'some_cmd', [CompletionResultType]::ParameterValue, 'tests other things') [CompletionResult]::new('some-cmd-with-hyphens', 'some-cmd-with-hyphens', [CompletionResultType]::ParameterValue, 'some-cmd-with-hyphens') @@ -38,32 +38,32 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { } 'my-app;test' { [CompletionResult]::new('--case', 'case', [CompletionResultType]::ParameterName, 'the case to test') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;some_cmd' { [CompletionResult]::new('--config', 'config', [CompletionResultType]::ParameterName, 'the other case to test') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;some-cmd-with-hyphens' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;some-hidden-cmd' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;help' { diff --git a/clap_complete/tests/snapshots/special_commands.zsh b/clap_complete/tests/snapshots/special_commands.zsh index 0d0ced68..42023be7 100644 --- a/clap_complete/tests/snapshots/special_commands.zsh +++ b/clap_complete/tests/snapshots/special_commands.zsh @@ -19,10 +19,10 @@ _my-app() { '*-C[some config file]' \ '*--config[some config file]' \ '*--conf[some config file]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ '::file -- some input file:_files' \ '::choice:(first second)' \ ":: :_my-app_commands" \ @@ -37,36 +37,36 @@ _my-app() { (test) _arguments "${_arguments_options[@]}" \ '--case=[the case to test]: : ' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ && ret=0 ;; (some_cmd) _arguments "${_arguments_options[@]}" \ '--config=[the other case to test]: : ' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ '*::path:' \ && ret=0 ;; (some-cmd-with-hyphens) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ && ret=0 ;; (some-hidden-cmd) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ && ret=0 ;; (help) diff --git a/clap_complete/tests/snapshots/sub_subcommands.elvish b/clap_complete/tests/snapshots/sub_subcommands.elvish index d9c98a91..d42e344c 100644 --- a/clap_complete/tests/snapshots/sub_subcommands.elvish +++ b/clap_complete/tests/snapshots/sub_subcommands.elvish @@ -22,35 +22,35 @@ set edit:completion:arg-completer[my-app] = {|@words| cand -C 'some config file' cand --config 'some config file' cand --conf 'some config file' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' cand test 'tests things' cand some_cmd 'top level subcommand' cand help 'Print this message or the help of the given subcommand(s)' } &'my-app;test'= { cand --case 'the case to test' - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;some_cmd'= { - cand -h 'Print help information' - cand --help 'Print help information' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help' + cand --help 'Print help' + cand -V 'Print version' + cand --version 'Print version' cand sub_cmd 'sub-subcommand' cand help 'Print this message or the help of the given subcommand(s)' } &'my-app;some_cmd;sub_cmd'= { cand --config 'the other case to test' - cand -h 'Print help information (use `--help` for more detail)' - cand --help 'Print help information (use `--help` for more detail)' - cand -V 'Print version information' - cand --version 'Print version information' + cand -h 'Print help (see more with ''--help'')' + cand --help 'Print help (see more with ''--help'')' + cand -V 'Print version' + cand --version 'Print version' } &'my-app;some_cmd;help'= { cand sub_cmd 'sub-subcommand' diff --git a/clap_complete/tests/snapshots/sub_subcommands.fish b/clap_complete/tests/snapshots/sub_subcommands.fish index 7add21c5..f0eccd7c 100644 --- a/clap_complete/tests/snapshots/sub_subcommands.fish +++ b/clap_complete/tests/snapshots/sub_subcommands.fish @@ -1,19 +1,19 @@ complete -c my-app -n "__fish_use_subcommand" -s c -s C -l config -l conf -d 'some config file' -complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version' complete -c my-app -n "__fish_use_subcommand" -f -a "test" -d 'tests things' complete -c my-app -n "__fish_use_subcommand" -f -a "some_cmd" -d 'top level subcommand' complete -c my-app -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' complete -c my-app -n "__fish_seen_subcommand_from test" -l case -d 'the case to test' -r -complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from test" -s V -l version -d 'Print version information' -complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -s h -l help -d 'Print help information' -complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_seen_subcommand_from test" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from test" -s V -l version -d 'Print version' +complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -s h -l help -d 'Print help' +complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -s V -l version -d 'Print version' complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -f -a "sub_cmd" -d 'sub-subcommand' complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from sub_cmd" -l config -d 'the other case to test' -r -f -a "{Lest quotes\, aren\'t escaped. help\,with\,comma,Second to trigger display of options }" -complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from sub_cmd" -s h -l help -d 'Print help information (use `--help` for more detail)' -complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from sub_cmd" -s V -l version -d 'Print version information' +complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from sub_cmd" -s h -l help -d 'Print help (see more with \'--help\')' +complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from sub_cmd" -s V -l version -d 'Print version' complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -f -a "sub_cmd" -d 'sub-subcommand' complete -c my-app -n "__fish_seen_subcommand_from some_cmd; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from sub_cmd; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' complete -c my-app -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from test; and not __fish_seen_subcommand_from some_cmd; and not __fish_seen_subcommand_from help" -f -a "test" -d 'tests things' diff --git a/clap_complete/tests/snapshots/sub_subcommands.ps1 b/clap_complete/tests/snapshots/sub_subcommands.ps1 index fb560246..72567943 100644 --- a/clap_complete/tests/snapshots/sub_subcommands.ps1 +++ b/clap_complete/tests/snapshots/sub_subcommands.ps1 @@ -25,10 +25,10 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { [CompletionResult]::new('-C', 'C', [CompletionResultType]::ParameterName, 'some config file') [CompletionResult]::new('--config', 'config', [CompletionResultType]::ParameterName, 'some config file') [CompletionResult]::new('--conf', 'conf', [CompletionResultType]::ParameterName, 'some config file') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') [CompletionResult]::new('test', 'test', [CompletionResultType]::ParameterValue, 'tests things') [CompletionResult]::new('some_cmd', 'some_cmd', [CompletionResultType]::ParameterValue, 'top level subcommand') [CompletionResult]::new('help', 'help', [CompletionResultType]::ParameterValue, 'Print this message or the help of the given subcommand(s)') @@ -36,27 +36,27 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { } 'my-app;test' { [CompletionResult]::new('--case', 'case', [CompletionResultType]::ParameterName, 'the case to test') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;some_cmd' { - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') [CompletionResult]::new('sub_cmd', 'sub_cmd', [CompletionResultType]::ParameterValue, 'sub-subcommand') [CompletionResult]::new('help', 'help', [CompletionResultType]::ParameterValue, 'Print this message or the help of the given subcommand(s)') break } 'my-app;some_cmd;sub_cmd' { [CompletionResult]::new('--config', 'config', [CompletionResultType]::ParameterName, 'the other case to test') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information (use `--help` for more detail)') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information (use `--help` for more detail)') - [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information') - [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help (see more with ''--help'')') + [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version') + [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version') break } 'my-app;some_cmd;help' { diff --git a/clap_complete/tests/snapshots/sub_subcommands.zsh b/clap_complete/tests/snapshots/sub_subcommands.zsh index 7d853d5d..7a14feb5 100644 --- a/clap_complete/tests/snapshots/sub_subcommands.zsh +++ b/clap_complete/tests/snapshots/sub_subcommands.zsh @@ -19,10 +19,10 @@ _my-app() { '*-C[some config file]' \ '*--config[some config file]' \ '*--conf[some config file]' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ '::file -- some input file:_files' \ '::choice:(first second)' \ ":: :_my-app_commands" \ @@ -37,18 +37,18 @@ _my-app() { (test) _arguments "${_arguments_options[@]}" \ '--case=[the case to test]: : ' \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ && ret=0 ;; (some_cmd) _arguments "${_arguments_options[@]}" \ -'-h[Print help information]' \ -'--help[Print help information]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help]' \ +'--help[Print help]' \ +'-V[Print version]' \ +'--version[Print version]' \ ":: :_my-app__some_cmd_commands" \ "*::: :->some_cmd" \ && ret=0 @@ -63,10 +63,10 @@ _arguments "${_arguments_options[@]}" \ _arguments "${_arguments_options[@]}" \ '--config=[the other case to test]: :((Lest\ quotes,\ aren'\''t\ escaped.\:"help,with,comma" Second\ to\ trigger\ display\ of\ options\:""))' \ -'-h[Print help information (use `--help` for more detail)]' \ -'--help[Print help information (use `--help` for more detail)]' \ -'-V[Print version information]' \ -'--version[Print version information]' \ +'-h[Print help (see more with '\''--help'\'')]' \ +'--help[Print help (see more with '\''--help'\'')]' \ +'-V[Print version]' \ +'--version[Print version]' \ && ret=0 ;; (help) diff --git a/clap_complete/tests/snapshots/value_hint.elvish b/clap_complete/tests/snapshots/value_hint.elvish index 0cb62dc2..9ad39e8a 100644 --- a/clap_complete/tests/snapshots/value_hint.elvish +++ b/clap_complete/tests/snapshots/value_hint.elvish @@ -38,8 +38,8 @@ set edit:completion:arg-completer[my-app] = {|@words| cand --host 'host' cand --url 'url' cand --email 'email' - cand -h 'Print help information' - cand --help 'Print help information' + cand -h 'Print help' + cand --help 'Print help' } ] $completions[$command] diff --git a/clap_complete/tests/snapshots/value_hint.fish b/clap_complete/tests/snapshots/value_hint.fish index d84c7435..17fbb849 100644 --- a/clap_complete/tests/snapshots/value_hint.fish +++ b/clap_complete/tests/snapshots/value_hint.fish @@ -11,4 +11,4 @@ complete -c my-app -s u -l user -r -f -a "(__fish_complete_users)" complete -c my-app -s H -l host -r -f -a "(__fish_print_hostnames)" complete -c my-app -l url -r -f complete -c my-app -l email -r -f -complete -c my-app -s h -l help -d 'Print help information' +complete -c my-app -s h -l help -d 'Print help' diff --git a/clap_complete/tests/snapshots/value_hint.ps1 b/clap_complete/tests/snapshots/value_hint.ps1 index d64c03b3..fc2bd878 100644 --- a/clap_complete/tests/snapshots/value_hint.ps1 +++ b/clap_complete/tests/snapshots/value_hint.ps1 @@ -41,8 +41,8 @@ Register-ArgumentCompleter -Native -CommandName 'my-app' -ScriptBlock { [CompletionResult]::new('--host', 'host', [CompletionResultType]::ParameterName, 'host') [CompletionResult]::new('--url', 'url', [CompletionResultType]::ParameterName, 'url') [CompletionResult]::new('--email', 'email', [CompletionResultType]::ParameterName, 'email') - [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information') - [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information') + [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help') + [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help') break } }) diff --git a/clap_complete/tests/snapshots/value_hint.zsh b/clap_complete/tests/snapshots/value_hint.zsh index d865e4ca..15892dd7 100644 --- a/clap_complete/tests/snapshots/value_hint.zsh +++ b/clap_complete/tests/snapshots/value_hint.zsh @@ -35,8 +35,8 @@ _my-app() { '--host=[]: :_hosts' \ '--url=[]: :_urls' \ '--email=[]: :_email_addresses' \ -'-h[Print help information]' \ -'--help[Print help information]' \ +'-h[Print help]' \ +'--help[Print help]' \ '*::command_with_args:_cmdambivalent' \ && ret=0 } diff --git a/clap_complete_fig/tests/snapshots/aliases.fig.js b/clap_complete_fig/tests/snapshots/aliases.fig.js index 8cf108a4..678c3a8a 100644 --- a/clap_complete_fig/tests/snapshots/aliases.fig.js +++ b/clap_complete_fig/tests/snapshots/aliases.fig.js @@ -17,11 +17,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], args: { diff --git a/clap_complete_fig/tests/snapshots/basic.fig.js b/clap_complete_fig/tests/snapshots/basic.fig.js index a8cd3fcc..301e489b 100644 --- a/clap_complete_fig/tests/snapshots/basic.fig.js +++ b/clap_complete_fig/tests/snapshots/basic.fig.js @@ -15,7 +15,7 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -46,7 +46,7 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }; diff --git a/clap_complete_fig/tests/snapshots/feature_sample.fig.js b/clap_complete_fig/tests/snapshots/feature_sample.fig.js index 434bfe6b..e5d8d4a3 100644 --- a/clap_complete_fig/tests/snapshots/feature_sample.fig.js +++ b/clap_complete_fig/tests/snapshots/feature_sample.fig.js @@ -17,11 +17,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -48,11 +48,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], args: [ diff --git a/clap_complete_fig/tests/snapshots/quoting.fig.js b/clap_complete_fig/tests/snapshots/quoting.fig.js index 9142bd1a..81cb5273 100644 --- a/clap_complete_fig/tests/snapshots/quoting.fig.js +++ b/clap_complete_fig/tests/snapshots/quoting.fig.js @@ -8,7 +8,7 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -18,7 +18,7 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -28,7 +28,7 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -38,7 +38,7 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -48,7 +48,7 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -58,7 +58,7 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], }, @@ -124,11 +124,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }; diff --git a/clap_complete_fig/tests/snapshots/special_commands.fig.js b/clap_complete_fig/tests/snapshots/special_commands.fig.js index 6829eb5f..591e3ba5 100644 --- a/clap_complete_fig/tests/snapshots/special_commands.fig.js +++ b/clap_complete_fig/tests/snapshots/special_commands.fig.js @@ -17,11 +17,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -42,11 +42,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], args: { @@ -60,11 +60,11 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -74,11 +74,11 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -116,11 +116,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], args: [ diff --git a/clap_complete_fig/tests/snapshots/sub_subcommands.fig.js b/clap_complete_fig/tests/snapshots/sub_subcommands.fig.js index d5c95e6a..bdea7422 100644 --- a/clap_complete_fig/tests/snapshots/sub_subcommands.fig.js +++ b/clap_complete_fig/tests/snapshots/sub_subcommands.fig.js @@ -17,11 +17,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -47,11 +47,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -73,11 +73,11 @@ const completion: Fig.Spec = { options: [ { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], }, @@ -114,11 +114,11 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, { name: ["-V", "--version"], - description: "Print version information", + description: "Print version", }, ], args: [ diff --git a/clap_complete_fig/tests/snapshots/value_hint.fig.js b/clap_complete_fig/tests/snapshots/value_hint.fig.js index d6aec132..5fa6d4ce 100644 --- a/clap_complete_fig/tests/snapshots/value_hint.fig.js +++ b/clap_complete_fig/tests/snapshots/value_hint.fig.js @@ -119,7 +119,7 @@ const completion: Fig.Spec = { }, { name: ["-h", "--help"], - description: "Print help information", + description: "Print help", }, ], args: { diff --git a/clap_mangen/tests/snapshots/aliases.bash.roff b/clap_mangen/tests/snapshots/aliases.bash.roff index 4cd893f1..10c6f441 100644 --- a/clap_mangen/tests/snapshots/aliases.bash.roff +++ b/clap_mangen/tests/snapshots/aliases.bash.roff @@ -16,10 +16,10 @@ cmd flag cmd option .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .TP /fB/-V/fR, /fB/-/-version/fR -Print version information +Print version .TP [/fIpositional/fR] diff --git a/clap_mangen/tests/snapshots/basic.bash.roff b/clap_mangen/tests/snapshots/basic.bash.roff index e502cd97..ebacd859 100644 --- a/clap_mangen/tests/snapshots/basic.bash.roff +++ b/clap_mangen/tests/snapshots/basic.bash.roff @@ -15,7 +15,7 @@ my/-app .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .SH SUBCOMMANDS .TP my/-app/-test(1) diff --git a/clap_mangen/tests/snapshots/feature_sample.bash.roff b/clap_mangen/tests/snapshots/feature_sample.bash.roff index f3cc3bf6..b1a69336 100644 --- a/clap_mangen/tests/snapshots/feature_sample.bash.roff +++ b/clap_mangen/tests/snapshots/feature_sample.bash.roff @@ -13,10 +13,10 @@ Tests completions some config file .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .TP /fB/-V/fR, /fB/-/-version/fR -Print version information +Print version .TP [/fIfile/fR] some input file diff --git a/clap_mangen/tests/snapshots/hidden_option.bash.roff b/clap_mangen/tests/snapshots/hidden_option.bash.roff index 04227c2e..84a375f4 100644 --- a/clap_mangen/tests/snapshots/hidden_option.bash.roff +++ b/clap_mangen/tests/snapshots/hidden_option.bash.roff @@ -12,4 +12,4 @@ my/-app .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help diff --git a/clap_mangen/tests/snapshots/possible_values.bash.roff b/clap_mangen/tests/snapshots/possible_values.bash.roff index d4be2d2c..e9768fdf 100644 --- a/clap_mangen/tests/snapshots/possible_values.bash.roff +++ b/clap_mangen/tests/snapshots/possible_values.bash.roff @@ -25,7 +25,7 @@ slow: use the slow method .RE .TP /fB/-h/fR, /fB/-/-help/fR -Print help information (use `/-h` for a summary) +Print help (see a summary with /*(Aq/-h/*(Aq) .TP [/fIpositional_choice/fR] Pick the Position you want the command to run in diff --git a/clap_mangen/tests/snapshots/quoting.bash.roff b/clap_mangen/tests/snapshots/quoting.bash.roff index 60280b42..6097def8 100644 --- a/clap_mangen/tests/snapshots/quoting.bash.roff +++ b/clap_mangen/tests/snapshots/quoting.bash.roff @@ -27,10 +27,10 @@ List packages [filter] Execute the shell command with $SHELL .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .TP /fB/-V/fR, /fB/-/-version/fR -Print version information +Print version .SH SUBCOMMANDS .TP my/-app/-cmd/-single/-quotes(1) diff --git a/clap_mangen/tests/snapshots/special_commands.bash.roff b/clap_mangen/tests/snapshots/special_commands.bash.roff index db7b607a..0be1869e 100644 --- a/clap_mangen/tests/snapshots/special_commands.bash.roff +++ b/clap_mangen/tests/snapshots/special_commands.bash.roff @@ -13,10 +13,10 @@ Tests completions some config file .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .TP /fB/-V/fR, /fB/-/-version/fR -Print version information +Print version .TP [/fIfile/fR] some input file diff --git a/clap_mangen/tests/snapshots/sub_subcommands.bash.roff b/clap_mangen/tests/snapshots/sub_subcommands.bash.roff index 9f034036..cafe26cd 100644 --- a/clap_mangen/tests/snapshots/sub_subcommands.bash.roff +++ b/clap_mangen/tests/snapshots/sub_subcommands.bash.roff @@ -13,10 +13,10 @@ Tests completions some config file .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .TP /fB/-V/fR, /fB/-/-version/fR -Print version information +Print version .TP [/fIfile/fR] some input file diff --git a/clap_mangen/tests/snapshots/value_env.bash.roff b/clap_mangen/tests/snapshots/value_env.bash.roff index 7e896619..37536d1c 100644 --- a/clap_mangen/tests/snapshots/value_env.bash.roff +++ b/clap_mangen/tests/snapshots/value_env.bash.roff @@ -15,4 +15,4 @@ May also be specified with the /fBCONFIG_FILE/fR environment variable. .RE .TP /fB/-h/fR, /fB/-/-help/fR -Print help information (use `/-h` for a summary) +Print help (see a summary with /*(Aq/-h/*(Aq) diff --git a/clap_mangen/tests/snapshots/value_hint.bash.roff b/clap_mangen/tests/snapshots/value_hint.bash.roff index 2b9ad889..52193e1e 100644 --- a/clap_mangen/tests/snapshots/value_hint.bash.roff +++ b/clap_mangen/tests/snapshots/value_hint.bash.roff @@ -50,7 +50,7 @@ my/-app .TP /fB/-h/fR, /fB/-/-help/fR -Print help information +Print help .TP [/fIcommand_with_args/fR] diff --git a/examples/cargo-example-derive.md b/examples/cargo-example-derive.md index 99cbb2f1..a3dcef38 100644 --- a/examples/cargo-example-derive.md +++ b/examples/cargo-example-derive.md @@ -13,7 +13,7 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information + -h, --help Print help $ cargo-example-derive example-derive --help A simple to use, efficient, and full-featured Command Line Argument Parser @@ -22,8 +22,8 @@ Usage: cargo example-derive [OPTIONS] Options: --manifest-path - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/cargo-example.md b/examples/cargo-example.md index caafbad1..edf8ee18 100644 --- a/examples/cargo-example.md +++ b/examples/cargo-example.md @@ -13,7 +13,7 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information + -h, --help Print help $ cargo-example example --help A simple to use, efficient, and full-featured Command Line Argument Parser @@ -22,8 +22,8 @@ Usage: cargo example [OPTIONS] Options: --manifest-path - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/demo.md b/examples/demo.md index 2a9ed94c..772d98dc 100644 --- a/examples/demo.md +++ b/examples/demo.md @@ -7,8 +7,8 @@ Usage: demo[EXE] [OPTIONS] --name Options: -n, --name Name of the person to greet -c, --count Number of times to greet [default: 1] - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ demo --name Me Hello Me! diff --git a/examples/derive_ref/interop_tests.md b/examples/derive_ref/interop_tests.md index b013b0c8..2a3d20ef 100644 --- a/examples/derive_ref/interop_tests.md +++ b/examples/derive_ref/interop_tests.md @@ -103,7 +103,7 @@ Commands: Options: -t, --top-level - -h, --help Print help information + -h, --help Print help ``` diff --git a/examples/escaped-positional-derive.md b/examples/escaped-positional-derive.md index cd52add6..befcd307 100644 --- a/examples/escaped-positional-derive.md +++ b/examples/escaped-positional-derive.md @@ -15,8 +15,8 @@ Arguments: Options: -f -p - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/escaped-positional.md b/examples/escaped-positional.md index 6015cc37..6fc38981 100644 --- a/examples/escaped-positional.md +++ b/examples/escaped-positional.md @@ -15,8 +15,8 @@ Arguments: Options: -f -p - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/find.md b/examples/find.md index 6388d472..e9b1a86f 100644 --- a/examples/find.md +++ b/examples/find.md @@ -7,8 +7,8 @@ A simple to use, efficient, and full-featured Command Line Argument Parser Usage: find[EXE] [OPTIONS] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version TESTS: --empty File is empty and is either a regular file or a directory diff --git a/examples/git-derive.md b/examples/git-derive.md index a4769dea..b5c4794d 100644 --- a/examples/git-derive.md +++ b/examples/git-derive.md @@ -19,7 +19,7 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information + -h, --help Print help $ git-derive help A fictional versioning CLI @@ -35,7 +35,7 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information + -h, --help Print help $ git-derive help add adds things @@ -46,7 +46,7 @@ Arguments: ... Stuff to add Options: - -h, --help Print help information + -h, --help Print help ``` @@ -62,7 +62,7 @@ Arguments: ... Stuff to add Options: - -h, --help Print help information + -h, --help Print help $ git-derive add Cargo.toml Cargo.lock Adding ["Cargo.toml", "Cargo.lock"] @@ -83,14 +83,14 @@ Commands: Options: -m, --message - -h, --help Print help information + -h, --help Print help $ git-derive stash push -h Usage: git-derive[EXE] stash push [OPTIONS] Options: -m, --message - -h, --help Print help information + -h, --help Print help $ git-derive stash pop -h Usage: git-derive[EXE] stash pop [STASH] @@ -99,7 +99,7 @@ Arguments: [STASH] Options: - -h, --help Print help information + -h, --help Print help $ git-derive stash -m "Prototype" Pushing StashPush { message: Some("Prototype") } @@ -136,7 +136,7 @@ Arguments: Options: --color[=] [default: auto] [possible values: always, auto, never] - -h, --help Print help information + -h, --help Print help $ git-derive diff Diffing stage..worktree (color=auto) diff --git a/examples/git.md b/examples/git.md index de01a447..d90b2e8e 100644 --- a/examples/git.md +++ b/examples/git.md @@ -17,7 +17,7 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information + -h, --help Print help $ git help A fictional versioning CLI @@ -33,7 +33,7 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information + -h, --help Print help $ git help add adds things @@ -44,7 +44,7 @@ Arguments: ... Stuff to add Options: - -h, --help Print help information + -h, --help Print help ``` @@ -60,7 +60,7 @@ Arguments: ... Stuff to add Options: - -h, --help Print help information + -h, --help Print help $ git add Cargo.toml Cargo.lock Adding ["Cargo.toml", "Cargo.lock"] @@ -81,14 +81,14 @@ Commands: Options: -m, --message - -h, --help Print help information + -h, --help Print help $ git stash push -h Usage: git[EXE] stash push [OPTIONS] Options: -m, --message - -h, --help Print help information + -h, --help Print help $ git stash pop -h Usage: git[EXE] stash pop [STASH] @@ -97,7 +97,7 @@ Arguments: [STASH] Options: - -h, --help Print help information + -h, --help Print help $ git stash -m "Prototype" Pushing Some("Prototype") @@ -134,7 +134,7 @@ Arguments: Options: --color[=] [default: auto] [possible values: always, auto, never] - -h, --help Print help information + -h, --help Print help $ git diff Diffing stage..worktree (color=auto) diff --git a/examples/multicall-busybox.md b/examples/multicall-busybox.md index 8ee93cc5..e84b2635 100644 --- a/examples/multicall-busybox.md +++ b/examples/multicall-busybox.md @@ -34,6 +34,6 @@ APPLETS: Options: --install Install hardlinks for all subcommands in path - -h, --help Print help information + -h, --help Print help ``` diff --git a/examples/pacman.md b/examples/pacman.md index 73ec86fa..6bc1de82 100644 --- a/examples/pacman.md +++ b/examples/pacman.md @@ -45,8 +45,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ pacman -S -h Synchronize packages. @@ -59,7 +59,7 @@ Arguments: Options: -s, --search ... search remote repositories for matching strings -i, --info view package information - -h, --help Print help information + -h, --help Print help ``` diff --git a/examples/tutorial_builder/01_quick.md b/examples/tutorial_builder/01_quick.md index b9631517..bdba15cd 100644 --- a/examples/tutorial_builder/01_quick.md +++ b/examples/tutorial_builder/01_quick.md @@ -14,8 +14,8 @@ Arguments: Options: -c, --config Sets a custom config file -d, --debug... Turn debugging information on - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/tutorial_builder/02_app_settings.md b/examples/tutorial_builder/02_app_settings.md index 47fa61b2..3ac9a95e 100644 --- a/examples/tutorial_builder/02_app_settings.md +++ b/examples/tutorial_builder/02_app_settings.md @@ -10,8 +10,8 @@ Options: --one -h, --help - Print help information + Print help -V, --version - Print version information + Print version ``` diff --git a/examples/tutorial_builder/02_apps.md b/examples/tutorial_builder/02_apps.md index 47379ce4..1f8b071b 100644 --- a/examples/tutorial_builder/02_apps.md +++ b/examples/tutorial_builder/02_apps.md @@ -7,8 +7,8 @@ Usage: 02_apps[EXE] --two --one Options: --two --one - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 02_apps --version MyApp 1.0 diff --git a/examples/tutorial_builder/02_crate.md b/examples/tutorial_builder/02_crate.md index 832f7f7c..a0d21b3e 100644 --- a/examples/tutorial_builder/02_crate.md +++ b/examples/tutorial_builder/02_crate.md @@ -7,8 +7,8 @@ Usage: 02_crate[EXE] --two --one Options: --two --one - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 02_crate --version clap [..] diff --git a/examples/tutorial_builder/03_01_flag_bool.md b/examples/tutorial_builder/03_01_flag_bool.md index 71f6f906..161c9e51 100644 --- a/examples/tutorial_builder/03_01_flag_bool.md +++ b/examples/tutorial_builder/03_01_flag_bool.md @@ -6,8 +6,8 @@ Usage: 03_01_flag_bool[EXE] [OPTIONS] Options: -v, --verbose - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_01_flag_bool verbose: false diff --git a/examples/tutorial_builder/03_01_flag_count.md b/examples/tutorial_builder/03_01_flag_count.md index 95610a19..5e964b67 100644 --- a/examples/tutorial_builder/03_01_flag_count.md +++ b/examples/tutorial_builder/03_01_flag_count.md @@ -6,8 +6,8 @@ Usage: 03_01_flag_count[EXE] [OPTIONS] Options: -v, --verbose... - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_01_flag_count verbose: 0 diff --git a/examples/tutorial_builder/03_02_option.md b/examples/tutorial_builder/03_02_option.md index 68dc25e8..42b81fd4 100644 --- a/examples/tutorial_builder/03_02_option.md +++ b/examples/tutorial_builder/03_02_option.md @@ -6,8 +6,8 @@ Usage: 03_02_option[EXE] [OPTIONS] Options: -n, --name - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_02_option name: None diff --git a/examples/tutorial_builder/03_02_option_mult.md b/examples/tutorial_builder/03_02_option_mult.md index 21af5793..659748e4 100644 --- a/examples/tutorial_builder/03_02_option_mult.md +++ b/examples/tutorial_builder/03_02_option_mult.md @@ -6,8 +6,8 @@ Usage: 03_02_option_mult[EXE] [OPTIONS] Options: -n, --name - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_02_option_mult name: None diff --git a/examples/tutorial_builder/03_03_positional.md b/examples/tutorial_builder/03_03_positional.md index df54b022..d8d49f39 100644 --- a/examples/tutorial_builder/03_03_positional.md +++ b/examples/tutorial_builder/03_03_positional.md @@ -8,8 +8,8 @@ Arguments: [name] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_03_positional name: None diff --git a/examples/tutorial_builder/03_03_positional_mult.md b/examples/tutorial_builder/03_03_positional_mult.md index d31acdf2..174ddd9f 100644 --- a/examples/tutorial_builder/03_03_positional_mult.md +++ b/examples/tutorial_builder/03_03_positional_mult.md @@ -8,8 +8,8 @@ Arguments: [name]... Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_03_positional_mult names: [] diff --git a/examples/tutorial_builder/03_04_subcommands.md b/examples/tutorial_builder/03_04_subcommands.md index 91a4a058..7c73add7 100644 --- a/examples/tutorial_builder/03_04_subcommands.md +++ b/examples/tutorial_builder/03_04_subcommands.md @@ -9,8 +9,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_04_subcommands help add Adds files to myapp @@ -21,8 +21,8 @@ Arguments: [NAME] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_04_subcommands add bob 'myapp add' was used, name is: Some("bob") @@ -42,8 +42,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/tutorial_builder/03_05_default_values.md b/examples/tutorial_builder/03_05_default_values.md index 96880f16..b62a4155 100644 --- a/examples/tutorial_builder/03_05_default_values.md +++ b/examples/tutorial_builder/03_05_default_values.md @@ -8,8 +8,8 @@ Arguments: [PORT] [default: 2020] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_05_default_values port: 2020 diff --git a/examples/tutorial_builder/04_01_enum.md b/examples/tutorial_builder/04_01_enum.md index 7f1a0d19..d8c49be5 100644 --- a/examples/tutorial_builder/04_01_enum.md +++ b/examples/tutorial_builder/04_01_enum.md @@ -14,10 +14,10 @@ Arguments: Options: -h, --help - Print help information (use `-h` for a summary) + Print help (see a summary with '-h') -V, --version - Print version information + Print version $ 04_01_enum -h A simple to use, efficient, and full-featured Command Line Argument Parser @@ -28,8 +28,8 @@ Arguments: What mode to run the program in [possible values: fast, slow] Options: - -h, --help Print help information (use `--help` for more detail) - -V, --version Print version information + -h, --help Print help (see more with '--help') + -V, --version Print version $ 04_01_enum fast Hare diff --git a/examples/tutorial_builder/04_01_possible.md b/examples/tutorial_builder/04_01_possible.md index 22a81fe5..1db20d81 100644 --- a/examples/tutorial_builder/04_01_possible.md +++ b/examples/tutorial_builder/04_01_possible.md @@ -8,8 +8,8 @@ Arguments: What mode to run the program in [possible values: fast, slow] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_01_possible fast Hare diff --git a/examples/tutorial_builder/04_02_parse.md b/examples/tutorial_builder/04_02_parse.md index e91f5ddc..c6f91fd1 100644 --- a/examples/tutorial_builder/04_02_parse.md +++ b/examples/tutorial_builder/04_02_parse.md @@ -8,8 +8,8 @@ Arguments: Network port to use Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_02_parse 22 PORT = 22 diff --git a/examples/tutorial_builder/04_02_validate.md b/examples/tutorial_builder/04_02_validate.md index b62328e0..0c879fe0 100644 --- a/examples/tutorial_builder/04_02_validate.md +++ b/examples/tutorial_builder/04_02_validate.md @@ -8,8 +8,8 @@ Arguments: Network port to use Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_02_validate 22 PORT = 22 diff --git a/examples/tutorial_builder/04_03_relations.md b/examples/tutorial_builder/04_03_relations.md index cdca1936..8fec2d5d 100644 --- a/examples/tutorial_builder/04_03_relations.md +++ b/examples/tutorial_builder/04_03_relations.md @@ -14,8 +14,8 @@ Options: --patch auto inc patch --spec-in some special input argument -c - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_03_relations ? failed diff --git a/examples/tutorial_builder/04_04_custom.md b/examples/tutorial_builder/04_04_custom.md index 64e38b5f..357958bb 100644 --- a/examples/tutorial_builder/04_04_custom.md +++ b/examples/tutorial_builder/04_04_custom.md @@ -14,8 +14,8 @@ Options: --patch auto inc patch --spec-in some special input argument -c - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_04_custom ? failed diff --git a/examples/tutorial_derive/01_quick.md b/examples/tutorial_derive/01_quick.md index 1d975843..21bbfe1a 100644 --- a/examples/tutorial_derive/01_quick.md +++ b/examples/tutorial_derive/01_quick.md @@ -14,8 +14,8 @@ Arguments: Options: -c, --config Sets a custom config file -d, --debug... Turn debugging information on - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/tutorial_derive/02_app_settings.md b/examples/tutorial_derive/02_app_settings.md index fa21fda8..90da3ae1 100644 --- a/examples/tutorial_derive/02_app_settings.md +++ b/examples/tutorial_derive/02_app_settings.md @@ -10,8 +10,8 @@ Options: --one -h, --help - Print help information + Print help -V, --version - Print version information + Print version ``` diff --git a/examples/tutorial_derive/02_apps.md b/examples/tutorial_derive/02_apps.md index 373d6a5a..b5ae1147 100644 --- a/examples/tutorial_derive/02_apps.md +++ b/examples/tutorial_derive/02_apps.md @@ -7,8 +7,8 @@ Usage: 02_apps_derive[EXE] --two --one Options: --two --one - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 02_apps_derive --version MyApp 1.0 diff --git a/examples/tutorial_derive/02_crate.md b/examples/tutorial_derive/02_crate.md index 001ccad0..3f644606 100644 --- a/examples/tutorial_derive/02_crate.md +++ b/examples/tutorial_derive/02_crate.md @@ -7,8 +7,8 @@ Usage: 02_crate_derive[EXE] --two --one Options: --two --one - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 02_crate_derive --version clap [..] diff --git a/examples/tutorial_derive/03_01_flag_bool.md b/examples/tutorial_derive/03_01_flag_bool.md index 83f57fa6..c7ce587e 100644 --- a/examples/tutorial_derive/03_01_flag_bool.md +++ b/examples/tutorial_derive/03_01_flag_bool.md @@ -6,8 +6,8 @@ Usage: 03_01_flag_bool_derive[EXE] [OPTIONS] Options: -v, --verbose - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_01_flag_bool_derive verbose: false diff --git a/examples/tutorial_derive/03_01_flag_count.md b/examples/tutorial_derive/03_01_flag_count.md index 53834ee2..56ef9caf 100644 --- a/examples/tutorial_derive/03_01_flag_count.md +++ b/examples/tutorial_derive/03_01_flag_count.md @@ -6,8 +6,8 @@ Usage: 03_01_flag_count_derive[EXE] [OPTIONS] Options: -v, --verbose... - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_01_flag_count_derive verbose: 0 diff --git a/examples/tutorial_derive/03_02_option.md b/examples/tutorial_derive/03_02_option.md index d1acf395..24e272aa 100644 --- a/examples/tutorial_derive/03_02_option.md +++ b/examples/tutorial_derive/03_02_option.md @@ -6,8 +6,8 @@ Usage: 03_02_option_derive[EXE] [OPTIONS] Options: -n, --name - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_02_option_derive name: None diff --git a/examples/tutorial_derive/03_02_option_mult.md b/examples/tutorial_derive/03_02_option_mult.md index b1969e75..cd2fe130 100644 --- a/examples/tutorial_derive/03_02_option_mult.md +++ b/examples/tutorial_derive/03_02_option_mult.md @@ -6,8 +6,8 @@ Usage: 03_02_option_mult_derive[EXE] [OPTIONS] Options: -n, --name - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_02_option_mult_derive name: [] diff --git a/examples/tutorial_derive/03_03_positional.md b/examples/tutorial_derive/03_03_positional.md index 6ca99ae9..9437c246 100644 --- a/examples/tutorial_derive/03_03_positional.md +++ b/examples/tutorial_derive/03_03_positional.md @@ -8,8 +8,8 @@ Arguments: [NAME] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_03_positional_derive name: None diff --git a/examples/tutorial_derive/03_03_positional_mult.md b/examples/tutorial_derive/03_03_positional_mult.md index deec7222..8f295e02 100644 --- a/examples/tutorial_derive/03_03_positional_mult.md +++ b/examples/tutorial_derive/03_03_positional_mult.md @@ -8,8 +8,8 @@ Arguments: [NAME]... Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_03_positional_mult_derive name: [] diff --git a/examples/tutorial_derive/03_04_subcommands.md b/examples/tutorial_derive/03_04_subcommands.md index 3e95a680..1fbac8fa 100644 --- a/examples/tutorial_derive/03_04_subcommands.md +++ b/examples/tutorial_derive/03_04_subcommands.md @@ -9,8 +9,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_04_subcommands_derive help add Adds files to myapp @@ -21,8 +21,8 @@ Arguments: [NAME] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_04_subcommands_derive add bob 'myapp add' was used, name is: Some("bob") @@ -42,8 +42,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version ``` diff --git a/examples/tutorial_derive/03_05_default_values.md b/examples/tutorial_derive/03_05_default_values.md index 194f54fb..994cb332 100644 --- a/examples/tutorial_derive/03_05_default_values.md +++ b/examples/tutorial_derive/03_05_default_values.md @@ -8,8 +8,8 @@ Arguments: [PORT] [default: 2020] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 03_05_default_values_derive port: 2020 diff --git a/examples/tutorial_derive/04_01_enum.md b/examples/tutorial_derive/04_01_enum.md index d208c8fa..b09aa49e 100644 --- a/examples/tutorial_derive/04_01_enum.md +++ b/examples/tutorial_derive/04_01_enum.md @@ -14,10 +14,10 @@ Arguments: Options: -h, --help - Print help information (use `-h` for a summary) + Print help (see a summary with '-h') -V, --version - Print version information + Print version $ 04_01_enum_derive -h A simple to use, efficient, and full-featured Command Line Argument Parser @@ -28,8 +28,8 @@ Arguments: What mode to run the program in [possible values: fast, slow] Options: - -h, --help Print help information (use `--help` for more detail) - -V, --version Print version information + -h, --help Print help (see more with '--help') + -V, --version Print version $ 04_01_enum_derive fast Hare diff --git a/examples/tutorial_derive/04_02_parse.md b/examples/tutorial_derive/04_02_parse.md index df7537a4..6d623ec0 100644 --- a/examples/tutorial_derive/04_02_parse.md +++ b/examples/tutorial_derive/04_02_parse.md @@ -8,8 +8,8 @@ Arguments: Network port to use Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_02_parse_derive 22 PORT = 22 diff --git a/examples/tutorial_derive/04_02_validate.md b/examples/tutorial_derive/04_02_validate.md index 87bf2652..067a1202 100644 --- a/examples/tutorial_derive/04_02_validate.md +++ b/examples/tutorial_derive/04_02_validate.md @@ -8,8 +8,8 @@ Arguments: Network port to use Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_02_validate_derive 22 PORT = 22 diff --git a/examples/tutorial_derive/04_03_relations.md b/examples/tutorial_derive/04_03_relations.md index 47703347..db4c0ce1 100644 --- a/examples/tutorial_derive/04_03_relations.md +++ b/examples/tutorial_derive/04_03_relations.md @@ -14,8 +14,8 @@ Options: --patch auto inc patch --spec-in some special input argument -c - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_03_relations_derive ? failed diff --git a/examples/tutorial_derive/04_04_custom.md b/examples/tutorial_derive/04_04_custom.md index a68a914b..1b1469ef 100644 --- a/examples/tutorial_derive/04_04_custom.md +++ b/examples/tutorial_derive/04_04_custom.md @@ -14,8 +14,8 @@ Options: --patch auto inc patch --spec-in some special input argument -c - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version $ 04_04_custom_derive ? failed diff --git a/examples/typed-derive.md b/examples/typed-derive.md index 713594dc..9544b2f0 100644 --- a/examples/typed-derive.md +++ b/examples/typed-derive.md @@ -13,7 +13,7 @@ Options: -D Hand-written parser for tuples --port Support for discrete numbers [default: 22] [possible values: 22, 80] --log-level Support enums from a foreign crate that don't implement `ValueEnum` [default: info] [possible values: info, debug, info, warn, error] - -h, --help Print help information + -h, --help Print help ``` diff --git a/src/builder/command.rs b/src/builder/command.rs index 754e23a6..e3528a94 100644 --- a/src/builder/command.rs +++ b/src/builder/command.rs @@ -2641,8 +2641,8 @@ impl Command { /// alpha Some help and text /// /// Options: - /// -h, --help Print help information - /// -V, --version Print version information + /// -h, --help Print help + /// -V, --version Print version /// ``` #[inline] #[must_use] @@ -3105,8 +3105,8 @@ impl Command { /// sub1 /// /// Options: - /// -h, --help Print help information - /// -V, --version Print version information + /// -h, --help Print help + /// -V, --version Print version /// ``` /// /// but usage of `subcommand_value_name` @@ -3132,8 +3132,8 @@ impl Command { /// sub1 /// /// Options: - /// -h, --help Print help information - /// -V, --version Print version information + /// -h, --help Print help + /// -V, --version Print version /// ``` #[must_use] pub fn subcommand_value_name(mut self, value_name: impl IntoResettable) -> Self { @@ -3169,8 +3169,8 @@ impl Command { /// sub1 /// /// Options: - /// -h, --help Print help information - /// -V, --version Print version information + /// -h, --help Print help + /// -V, --version Print version /// ``` /// /// but usage of `subcommand_help_heading` @@ -3196,8 +3196,8 @@ impl Command { /// sub1 /// /// Options: - /// -h, --help Print help information - /// -V, --version Print version information + /// -h, --help Print help + /// -V, --version Print version /// ``` #[must_use] pub fn subcommand_help_heading(mut self, heading: impl IntoResettable) -> Self { @@ -4243,10 +4243,10 @@ impl Command { .action(ArgAction::Help); if self.long_help_exists { arg = arg - .help("Print help information (use `--help` for more detail)") - .long_help("Print help information (use `-h` for a summary)"); + .help("Print help (see more with '--help')") + .long_help("Print help (see a summary with '-h')"); } else { - arg = arg.help("Print help information"); + arg = arg.help("Print help"); } // Avoiding `arg_internal` to not be sensitive to `next_help_heading` / // `next_display_order` @@ -4258,7 +4258,7 @@ impl Command { .short('V') .long("version") .action(ArgAction::Version) - .help("Print version information"); + .help("Print version"); // Avoiding `arg_internal` to not be sensitive to `next_help_heading` / // `next_display_order` self.args.push(arg); diff --git a/tests/builder/app_settings.rs b/tests/builder/app_settings.rs index c2fc61c4..3e44cfc5 100644 --- a/tests/builder/app_settings.rs +++ b/tests/builder/app_settings.rs @@ -8,8 +8,8 @@ static ALLOW_EXT_SC: &str = "\ Usage: clap-test [COMMAND] Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; static DONT_COLLAPSE_ARGS: &str = "\ @@ -21,8 +21,8 @@ Arguments: [arg3] some Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; #[test] @@ -144,8 +144,8 @@ Usage: test [OPTIONS] Options: -i, --info Provides more info - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("test") @@ -306,8 +306,8 @@ Arguments: Options: -o, --opt some option - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("test") @@ -638,8 +638,8 @@ Usage: clap-test --opt= Options: -o, --opt= some - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("clap-test").version("v1.4.8").arg( diff --git a/tests/builder/arg_aliases.rs b/tests/builder/arg_aliases.rs index 6f597bd6..b602964a 100644 --- a/tests/builder/arg_aliases.rs +++ b/tests/builder/arg_aliases.rs @@ -198,8 +198,8 @@ Usage: ct test [OPTIONS] Options: -o, --opt -f, --flag - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ct").author("Salim Afiune").subcommand( @@ -228,8 +228,8 @@ Usage: ct test [OPTIONS] Options: -o, --opt [aliases: visible] -f, --flag [aliases: v_flg, flag2, flg3] - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ct").author("Salim Afiune").subcommand( diff --git a/tests/builder/arg_aliases_short.rs b/tests/builder/arg_aliases_short.rs index 9e8ea3ea..3a577b94 100644 --- a/tests/builder/arg_aliases_short.rs +++ b/tests/builder/arg_aliases_short.rs @@ -165,8 +165,8 @@ Usage: ct test [OPTIONS] Options: -o, --opt -f, --flag - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ct").author("Salim Afiune").subcommand( @@ -195,8 +195,8 @@ Usage: ct test [OPTIONS] Options: -o, --opt [short aliases: v] -f, --flag [aliases: flag1] [short aliases: a, b, 🦆] - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ct").author("Salim Afiune").subcommand( diff --git a/tests/builder/cargo.rs b/tests/builder/cargo.rs index 21336cb0..e5bd8910 100644 --- a/tests/builder/cargo.rs +++ b/tests/builder/cargo.rs @@ -12,8 +12,8 @@ A simple to use, efficient, and full-featured Command Line Argument Parser Usage: prog Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; static AUTHORS_ONLY: &str = "prog 1 @@ -22,8 +22,8 @@ static AUTHORS_ONLY: &str = "prog 1 Usage: prog Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; #[test] diff --git a/tests/builder/command.rs b/tests/builder/command.rs index 8c2c197c..a37a0415 100644 --- a/tests/builder/command.rs +++ b/tests/builder/command.rs @@ -10,8 +10,8 @@ A simple to use, efficient, and full-featured Command Line Argument Parser Usage: clap Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; #[test] diff --git a/tests/builder/derive_order.rs b/tests/builder/derive_order.rs index fb14bd1f..244bb5da 100644 --- a/tests/builder/derive_order.rs +++ b/tests/builder/derive_order.rs @@ -12,10 +12,10 @@ Usage: test [OPTIONS] Options: --flag_a second flag --flag_b first flag - -h, --help Print help information + -h, --help Print help --option_a second option --option_b first option - -V, --version Print version information + -V, --version Print version "; let cmd = Command::new("test") @@ -53,8 +53,8 @@ Options: --option_b first option --flag_a second flag --option_a second option - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("test").version("1.2").args([ @@ -87,8 +87,8 @@ Usage: test [OPTIONS] Options: --flag_b first flag --option_b first option - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version --flag_a second flag --option_a second option "; @@ -133,10 +133,10 @@ Usage: test [OPTIONS] Options: --flag_a first flag --flag_b second flag - -h, --help Print help information + -h, --help Print help --option_a first option --option_b second option - -V, --version Print version information + -V, --version Print version "; let cmd = Command::new("test") @@ -180,8 +180,8 @@ Options: --option_b first option --flag_a second flag --option_a second option - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("test").subcommand( @@ -218,8 +218,8 @@ Options: --flag_b first flag --option_b first option --option_a second option - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("test").subcommand( @@ -263,8 +263,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let app_subcmd_alpha_order = Command::new("test") @@ -298,8 +298,8 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let app_subcmd_decl_order = Command::new("test").version("1").subcommands(vec![ diff --git a/tests/builder/display_order.rs b/tests/builder/display_order.rs index 763734a4..80353dd0 100644 --- a/tests/builder/display_order.rs +++ b/tests/builder/display_order.rs @@ -17,7 +17,7 @@ Commands: sub Options: - -h, --help Print help information + -h, --help Print help ", false, ); diff --git a/tests/builder/double_require.rs b/tests/builder/double_require.rs index 7c617b42..fb16fe37 100644 --- a/tests/builder/double_require.rs +++ b/tests/builder/double_require.rs @@ -7,7 +7,7 @@ Options: -a -b -c - -h, --help Print help information + -h, --help Print help "; fn cmd() -> Command { diff --git a/tests/builder/error.rs b/tests/builder/error.rs index 59f034ac..7c7e1333 100644 --- a/tests/builder/error.rs +++ b/tests/builder/error.rs @@ -91,7 +91,7 @@ fn kind_prints_help() { Usage: test Options: - -h, --help Print help information + -h, --help Print help "; assert_error(err, expected_kind, MESSAGE, false); } diff --git a/tests/builder/flag_subcommands.rs b/tests/builder/flag_subcommands.rs index 627431b3..620fbc3a 100644 --- a/tests/builder/flag_subcommands.rs +++ b/tests/builder/flag_subcommands.rs @@ -504,7 +504,7 @@ Usage: pacman {query|--query|-Q} [OPTIONS] Options: -s, --search ... search locally installed packages for matching strings -i, --info ... view package information - -h, --help Print help information + -h, --help Print help "; #[test] @@ -552,7 +552,7 @@ Usage: pacman {query|--query} [OPTIONS] Options: -s, --search ... search locally installed packages for matching strings -i, --info ... view package information - -h, --help Print help information + -h, --help Print help "; #[test] @@ -604,7 +604,7 @@ Usage: pacman {query|-Q} [OPTIONS] Options: -s, --search ... search locally installed packages for matching strings -i, --info ... view package information - -h, --help Print help information + -h, --help Print help "; #[test] diff --git a/tests/builder/groups.rs b/tests/builder/groups.rs index b72c1e31..e2b77a46 100644 --- a/tests/builder/groups.rs +++ b/tests/builder/groups.rs @@ -271,7 +271,7 @@ Arguments: [A] Options: - -h, --help Print help information + -h, --help Print help "; let cmd = Command::new("prog") .arg(Arg::new("a").value_name("A")) diff --git a/tests/builder/help.rs b/tests/builder/help.rs index dbd8084a..f4a68521 100644 --- a/tests/builder/help.rs +++ b/tests/builder/help.rs @@ -98,8 +98,8 @@ Arguments: ... Second Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("example") @@ -128,8 +128,8 @@ Options: -v, --verbose Prints out more stuff. -t, --timeout Timeout in seconds. -f, --frequency The sampling frequency. - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("flamegraph") @@ -225,8 +225,8 @@ Options: --maxvals3 ... Tests 3 max vals --optvaleq[=] Tests optional value, require = sign --optvalnoeq [] Tests optional value - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; utils::assert_output(utils::complex_app(), "clap-test --help", HELP, false); @@ -241,8 +241,8 @@ tests clap library Usage: clap-test Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version some text that comes after the help "; @@ -265,8 +265,8 @@ tests clap library Usage: clap-test Options: - -h, --help Print help information (use `--help` for more detail) - -V, --version Print version information + -h, --help Print help (see more with '--help') + -V, --version Print version some text that comes after the help "; @@ -279,10 +279,10 @@ Usage: clap-test Options: -h, --help - Print help information (use `-h` for a summary) + Print help (see a summary with '-h') -V, --version - Print version information + Print version some longer text that comes after the help "; @@ -306,8 +306,8 @@ Usage: ctest subcmd multi [OPTIONS] Options: -f, --flag tests flags -o, --option ... tests options - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; #[test] @@ -340,8 +340,8 @@ fn no_wrap_default_help() { Usage: ctest Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ctest").version("1.0").term_width(0); @@ -362,7 +362,7 @@ Options: --no-git-commit Do not commit version changes --no-git-push Do not push generated commit and tags to git remote - -h, --help Print help information + -h, --help Print help "; let cmd = Command::new("test") .term_width(67) @@ -408,7 +408,7 @@ Options: --no-git-commit Do not commit version changes --no-git-push Do not push generated commit and tags to git remote - -h, --help Print help information + -h, --help Print help "; let cmd = Command::new("test") .term_width(68) @@ -467,7 +467,7 @@ Options: - second: short help -h, --help - Print help information (use `-h` for a summary) + Print help (see a summary with '-h') "; let cmd = Command::new("test") .term_width(67) @@ -519,8 +519,8 @@ Options: -o, --option ... tests options -f, --flag... tests flags -s, --subcmdarg tests other args - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let a = utils::complex_app(); @@ -542,8 +542,8 @@ Options: beverages such as iced coffee and iced tea. Many cafés also serve some type of food, such as light snacks, muffins, or pastries. - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ctest").version("0.1").term_width(70).arg( @@ -570,8 +570,8 @@ Usage: ctest [OPTIONS] Options: -p, --pos Some vals [possible values: fast, slow] -c, --cafe A coffeehouse, coffee shop, or café. - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; #[test] @@ -645,10 +645,10 @@ Options: A coffeehouse, coffee shop, or café. -h, --help - Print help information (use `-h` for a summary) + Print help (see a summary with '-h') -V, --version - Print version information + Print version "; let app = Command::new("ctest") .version("0.1") @@ -692,9 +692,9 @@ Options: une contribution majeure aux exportations des régions productrices. -h, --help - Print help information + Print help -V, --version - Print version information + Print version "; let cmd = Command::new("ctest") @@ -739,10 +739,8 @@ Usage: ctest Options: -h, --help Print help - information -V, --version Print version - information "; let cmd = Command::new("ctest").version("0.1").term_width(24); @@ -763,8 +761,8 @@ Arguments: contains symbols. Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ctest") @@ -792,8 +790,8 @@ Arguments: contains symbols. Options: - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let cmd = Command::new("ctest") @@ -830,7 +828,6 @@ Options: https://github.com/rust-lang/rustup/wiki/Non-host-toolchains -h, --help Print help - information "; utils::assert_output(cmd, "Example update --help", EXPECTED, false); } @@ -841,8 +838,8 @@ Usage: ctest [OPTIONS] Options: -m Some help with some wrapping (Defaults to something) - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; #[test] @@ -877,8 +874,8 @@ Options: --filter Sets the filter, or sampling method, to use for interpolation when resizing the particle images. The default is Linear (Bilinear). [possible values: Nearest, Linear, Cubic, Gaussian, Lanczos3] - -h, --help Print help information - -V, --version Print version information + -h, --help Print help + -V, --version Print version "; let filter_values = ["Nearest", "Linear", "Cubic", "Gaussian", "Lanczos3"]; @@ -932,8 +929,8 @@ Options: -s, --some some option -o, --other some other option -l, --label