mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 06:22:48 +01:00
make 'callback' an optparse typed action
* this ensures metavars are shown with print_help
This commit is contained in:
parent
e8d6c94995
commit
d00859e330
1 changed files with 1 additions and 0 deletions
|
|
@ -695,6 +695,7 @@ class SubcommandsOptionParser(optparse.OptionParser):
|
|||
return options, subcommand, suboptions, subargs
|
||||
|
||||
|
||||
optparse.Option.ALWAYS_TYPED_ACTIONS += ('callback',)
|
||||
def vararg_callback(option, opt_str, value, parser):
|
||||
"""Callback for an option with variable arguments.
|
||||
Manually collect arguments right of a callback-action
|
||||
|
|
|
|||
Loading…
Reference in a new issue