mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
prepare for --help-colour
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
f47199bc74
commit
718d769d0c
6 changed files with 30 additions and 16 deletions
|
@ -32,7 +32,9 @@ Version 3.0.2
|
|||
|
||||
Swedish manual page added.
|
||||
|
||||
Added manpage for ponysay-tool
|
||||
Added manpage for ponysay-tool.
|
||||
|
||||
+h (++help, --help-colour) added.
|
||||
|
||||
|
||||
Version 3.0.1
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
(multiple unargumented
|
||||
((options -h --help) (complete --help) (desc 'Show summary of options'))
|
||||
((option +h ++help --help-colour) (complete --help-colour) (desc 'Show help summary, with colour even if piped'))
|
||||
((options -v --version) (complete --version) (desc 'Show version of program'))
|
||||
((options -c --compress --compact) (complete --compact) (desc 'Compress message'))
|
||||
((options -l --list) (complete --list) (desc 'List all MLP:FiM ponies'))
|
||||
|
|
|
@ -1,30 +1,30 @@
|
|||
(ponysay-tool
|
||||
|
||||
(multple unargumented
|
||||
((option -h --help) (complete --help) (desc 'Show help summary'))
|
||||
((option -v --version) (complete --version) (desc 'Show version summary'))
|
||||
((options -h --help) (complete --help) (desc 'Show help summary'))
|
||||
((options +h ++help --help-colour) (complete --help-colour) (desc 'Show help summary, with colour even if piped'))
|
||||
((options -v --version) (complete --version) (desc 'Show version summary'))
|
||||
)
|
||||
|
||||
(unargumented (option --kms) (complete --kms) (desc 'Pregenerate kmsponies for current tty palette'))
|
||||
(unargumented (options --kms) (complete --kms) (desc 'Pregenerate kmsponies for current tty palette'))
|
||||
|
||||
(argumented (option --edit) (complete --edit) (arg PONYFILE) (files -f *.pony) (desc 'Edit pony metadata'))
|
||||
(argumented (options --edit) (complete --edit) (arg PONYFILE) (files -f *.pony) (desc 'Edit pony metadata'))
|
||||
|
||||
(argumented (option --edit-rm) (complete --edit-rm) (bind --edit) (desc 'Remove all pony metadata'))
|
||||
(argumented (options --edit-rm) (complete --edit-rm) (bind --edit) (desc 'Remove all pony metadata'))
|
||||
|
||||
(argumented (option --edit-stash) (complete --edit-stash) (bind --edit) (desc 'Print all pony metadata'))
|
||||
(argumented (options --edit-stash) (complete --edit-stash) (bind --edit) (desc 'Print all pony metadata'))
|
||||
|
||||
(argumented (option --edit-apply) (complete --edit-apply) (bind --edit) (desc 'Replace all metadata with stash metadata'))
|
||||
(argumented (options --edit-apply) (complete --edit-apply) (bind --edit) (desc 'Replace all metadata with stash metadata'))
|
||||
|
||||
(argumented (option --dimensions) (complete --dimensions) (arg PONYDIR) (files -d *) (desc 'Generate pony dimension file for a directory'))
|
||||
(argumented (options --dimensions) (complete --dimensions) (arg PONYDIR) (files -d) (desc 'Generate pony dimension file for a directory'))
|
||||
|
||||
(argumented (option --metadata) (complete --metadata) (arg PONYDIR) (files -d *) (desc 'Generate pony metadata collection file for a directory'))
|
||||
(argumented (options --metadata) (complete --metadata) (arg PONYDIR) (files -d) (desc 'Generate pony metadata collection file for a directory'))
|
||||
|
||||
(argumented (option -b --browse) (complete --browse) (arg PONYDIR) (files -d *) (desc 'Browse ponies in a directory')
|
||||
(argumented (options -b --browse) (complete --browse) (arg PONYDIR) (files -d) (desc 'Browse ponies in a directory')
|
||||
|
||||
(argumented (options -r --restrict) (complete --restrict) (arg RESTRICTION) (suggest -r) (files -0) (desc 'Metadata based restriction for --browse'))
|
||||
(argumented (options -r --restrict) (complete --restrict) (arg RESTRICTION) (suggest -r) (files -0) (desc 'Metadata based restriction for --browse'))
|
||||
|
||||
|
||||
(suggestion -r (verbatim kind=KIND group=GROUP coat=COAT eye=EYE mane=MANE aura=AURA)
|
||||
)
|
||||
(suggestion -r (verbatim kind=KIND group=GROUP coat=COAT eye=EYE mane=MANE aura=AURA))
|
||||
|
||||
)
|
||||
|
|
|
@ -151,6 +151,13 @@ Parse the following arguments as parts of @code{@var{message}}.
|
|||
@opindex @option{--help}
|
||||
Show summary of options.
|
||||
|
||||
@item +h
|
||||
@itemx ++help
|
||||
@opindex @option{+h}
|
||||
@opindex @option{++help}
|
||||
@opindex @option{--help-colour}
|
||||
Show summary of options, and use colours even if stdout is piped.
|
||||
|
||||
@item -v
|
||||
@itemx --verion
|
||||
@opindex @option{-v}
|
||||
|
@ -3278,11 +3285,13 @@ with the comic
|
|||
issue 8 where @file{drhooves} is siting alongside @file{doctor} and in
|
||||
front of @file{celestia}
|
||||
@item
|
||||
Added manpage for @command{ponysay-tool}
|
||||
@item
|
||||
Turkish manual page added.
|
||||
@item
|
||||
Swedish manual page added.
|
||||
@item
|
||||
@option{+h} (@option{++help}, @option{--help-colour}) added.
|
||||
@item
|
||||
Added manpage for @command{ponysay-tool}.
|
||||
@end itemize
|
||||
|
||||
@heading Version 3.0.1
|
||||
|
|
|
@ -120,6 +120,7 @@ run `man ponysay`. Ponysay has so much more to offer than described here.''')
|
|||
_F = ['--any-file', '--anyfile', '--any-pony', '--anypony']
|
||||
__F = [_.replace("pony", "ponie") + 's' for _ in _F]
|
||||
opts.add_argumentless(['-h', '--help'], help = 'Print this help message.')
|
||||
opts.add_argumentless(['+h', '++help', '--help-colour'], help = 'Print this help message with colours even if piped.')
|
||||
opts.add_argumentless(['-v', '--version'], help = 'Print the version of the program.')
|
||||
opts.add_argumentless(['-l', '--list'], help = 'List pony names.')
|
||||
opts.add_argumentless(['-L', '--symlist', '--altlist'], help = 'List pony names with alternatives.')
|
||||
|
|
|
@ -1231,6 +1231,7 @@ opts = ArgParser(program = 'ponysay-tool',
|
|||
opts.add_argumentless(['--no-term-init']) # for debugging
|
||||
|
||||
opts.add_argumentless(['-h', '--help'], help = 'Print this help message.')
|
||||
opts.add_argumentless(['+h', '++help', '--help-colour'], help = 'Print this help message with colours even if piped.')
|
||||
opts.add_argumentless(['-v', '--version'], help = 'Print the version of the program.')
|
||||
opts.add_argumentless(['--kms'], help = 'Generate all kmsponies for the current TTY palette')
|
||||
opts.add_argumented( ['--dimensions'], arg = 'PONY-DIR', help = 'Generate pony dimension file for a directory')
|
||||
|
|
Loading…
Reference in a new issue