in service/azservice/__main__.py [0:0]
def get_argument_value_list(command_table, query, verbose=False):
command_name = query['subcommand']
if command_name in command_table:
command = command_table[command_name]
argument_name = query['argument']
_, argument = get_argument(command, argument_name)
if argument:
if argument.choices:
return argument.choices
if argument.completer:
values = run_argument_value_completer(command, argument, query['arguments'])
if values is not None:
return values
if verbose: print('Completer not run ({} {})'.format(command_name, argument_name), file=stderr)
elif verbose: print('Completions not found ({} {})'.format(command_name, argument_name), file=stderr)
elif verbose and not [ a for a in GLOBAL_ARGUMENTS.values() if argument_name in a['options'] ]: print('Argument not found ({} {})'.format(command_name, argument_name), file=stderr)
elif verbose: print('Command not found ({})'.format(command_name), file=stderr)
return []