|
|
@ -87,9 +87,6 @@ def parse():
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
'--no-progress', action='store_true', default=False,
|
|
|
|
'--no-progress', action='store_true', default=False,
|
|
|
|
dest = 'no_progress', help=_('do not display the progress bar'))
|
|
|
|
dest = 'no_progress', help=_('do not display the progress bar'))
|
|
|
|
parser.add_argument(
|
|
|
|
|
|
|
|
'-f', '--force', action='store_true', default=False,
|
|
|
|
|
|
|
|
dest = 'no_questions', help=_('silent during the process'))
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
'-P', action='store_true', default=False,
|
|
|
|
'-P', action='store_true', default=False,
|
|
|
|
dest = 'stdin_passwd',
|
|
|
|
dest = 'stdin_passwd',
|
|
|
@ -106,7 +103,6 @@ def get_view(client, method, sid, view_params):
|
|
|
|
|
|
|
|
|
|
|
|
def call_method(client, args, unknown_args, wait_thread):
|
|
|
|
def call_method(client, args, unknown_args, wait_thread):
|
|
|
|
method = args.method
|
|
|
|
method = args.method
|
|
|
|
no_questions = args.no_questions
|
|
|
|
|
|
|
|
stdin_passwd = args.stdin_passwd
|
|
|
|
stdin_passwd = args.stdin_passwd
|
|
|
|
view_params = get_view_params(client, method + '_view', step = None, \
|
|
|
|
view_params = get_view_params(client, method + '_view', step = None, \
|
|
|
|
expert = True)
|
|
|
|
expert = True)
|
|
|
@ -115,7 +111,9 @@ def call_method(client, args, unknown_args, wait_thread):
|
|
|
|
method_parser = get_method_argparser(view, args)
|
|
|
|
method_parser = get_method_argparser(view, args)
|
|
|
|
param_object = _create_obj(client, method)
|
|
|
|
param_object = _create_obj(client, method)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
unknown_args = method_parser.fixBoolVariables(unknown_args)
|
|
|
|
args, unknown_args = method_parser.parse_known_args(unknown_args)
|
|
|
|
args, unknown_args = method_parser.parse_known_args(unknown_args)
|
|
|
|
|
|
|
|
no_questions = args.no_questions
|
|
|
|
except SystemExit:
|
|
|
|
except SystemExit:
|
|
|
|
raise Exception(1)
|
|
|
|
raise Exception(1)
|
|
|
|
for i in unknown_args:
|
|
|
|
for i in unknown_args:
|
|
|
|