From 8f9b9d31e2f667cbaa0083b6982f01eae006d9f0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 26 Apr 2019 09:12:03 +0200 Subject: [PATCH] Reorder arguments --- scripts/rest_client.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/rest_client.py b/scripts/rest_client.py index 6843bb31d..fc3478046 100755 --- a/scripts/rest_client.py +++ b/scripts/rest_client.py @@ -97,12 +97,6 @@ def add_arguments(): parser.add_argument("command", help="Positional argument defining the command to execute.") - parser.add_argument("command_arguments", - help="Positional arguments for the parameters for [command]", - nargs="*", - default=[] - ) - parser.add_argument('-c', '--config', help='Specify configuration file (default: %(default)s). ', dest='config', @@ -110,6 +104,13 @@ def add_arguments(): metavar='PATH', default='config.json' ) + + parser.add_argument("command_arguments", + help="Positional arguments for the parameters for [command]", + nargs="*", + default=[] + ) + args = parser.parse_args() # if len(argv) == 1: # print('\nThis script accepts the following arguments')