mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
commands: tolerate lack of argument to 'verbosity'
This commit is contained in:
parent
b96b5af101
commit
f9f6ea4365
1 changed files with 3 additions and 1 deletions
|
@ -829,7 +829,9 @@ def add_network_options(parser):
|
|||
|
||||
def add_global_options(parser):
|
||||
group = parser.add_argument_group('global options')
|
||||
group.add_argument("-v", "--verbosity", dest="verbosity", default='', help="Set verbosity filter")
|
||||
# const is for when no argument is given to verbosity
|
||||
# default is for when the flag is missing
|
||||
group.add_argument("-v", "--verbosity", dest="verbosity", help="Set verbosity filter", default='', const='', nargs='?')
|
||||
group.add_argument("-D", "--dir", dest="electrum_path", help="electrum directory")
|
||||
group.add_argument("-P", "--portable", action="store_true", dest="portable", default=False, help="Use local 'electrum_data' directory")
|
||||
group.add_argument("-w", "--wallet", dest="wallet_path", help="wallet path")
|
||||
|
|
Loading…
Add table
Reference in a new issue