Re-order arg flags

This commit is contained in:
Christophe Bedard 2019-10-12 15:36:04 -07:00
parent 36b789dc6a
commit 05caf3a4cd
2 changed files with 6 additions and 4 deletions

View file

@ -26,9 +26,10 @@ def parse_args():
parser = argparse.ArgumentParser(
description='Convert CTF trace data to a file.')
parser.add_argument(
'trace_directory', help='the path to the main CTF trace directory')
'trace_directory',
help='the path to the main CTF trace directory')
parser.add_argument(
'-o', '--output-file-path',
'-o', '--output-file-path', dest='output_file_path',
help='the path to the output file to generate (default: $trace_directory/converted)')
args = parser.parse_args()
if args.output_file_path is None:

View file

@ -26,9 +26,10 @@ def parse_args():
parser = argparse.ArgumentParser(description='Process a file converted from a trace'
'directory and analyze the data.')
parser.add_argument(
'output_file_path', help='the converted file to import')
'output_file_path',
help='the converted file to import')
parser.add_argument(
'-d', '--debug',
'-d', '--debug', dest='debug',
action='store_true', default=False,
help='display debug information (e.g. resulting model)')
return parser.parse_args()