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:
Philip Withnall 2020-01-16 13:26:21 +00:00
parent c02c56b3b5
commit e16759e0f7
1 changed files with 1 additions and 1 deletions

View File

@ -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)