malcontent-client: Fix error when running with no arguments
The default value for the `user` argument wasn’t looked up, since parsing an empty command line doesn’t go through the `parser_get_app_filter` subparser. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
c02c56b3b5
commit
e16759e0f7
|
@ -409,7 +409,7 @@ def main():
|
|||
subparsers = parser.add_subparsers(metavar='command',
|
||||
help='command to run (default: '
|
||||
'‘get-app-filter’)')
|
||||
parser.set_defaults(function=command_get_app_filter)
|
||||
parser.set_defaults(function=command_get_app_filter, user='')
|
||||
parser.add_argument('-q', '--quiet', action='store_true',
|
||||
help='output no informational messages')
|
||||
parser.set_defaults(quiet=False)
|
||||
|
|
Loading…
Reference in New Issue