Re-order arg flags
This commit is contained in:
parent
36b789dc6a
commit
05caf3a4cd
2 changed files with 6 additions and 4 deletions
|
@ -26,9 +26,10 @@ def parse_args():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description='Convert CTF trace data to a file.')
|
description='Convert CTF trace data to a file.')
|
||||||
parser.add_argument(
|
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(
|
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)')
|
help='the path to the output file to generate (default: $trace_directory/converted)')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.output_file_path is None:
|
if args.output_file_path is None:
|
||||||
|
|
|
@ -26,9 +26,10 @@ def parse_args():
|
||||||
parser = argparse.ArgumentParser(description='Process a file converted from a trace'
|
parser = argparse.ArgumentParser(description='Process a file converted from a trace'
|
||||||
'directory and analyze the data.')
|
'directory and analyze the data.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'output_file_path', help='the converted file to import')
|
'output_file_path',
|
||||||
|
help='the converted file to import')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-d', '--debug',
|
'-d', '--debug', dest='debug',
|
||||||
action='store_true', default=False,
|
action='store_true', default=False,
|
||||||
help='display debug information (e.g. resulting model)')
|
help='display debug information (e.g. resulting model)')
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue