Commit 927f30ef authored by André Anjos's avatar André Anjos 💬
Browse files

Use the 'default' keyword on the argparse option

parent 6bd84ca7
Pipeline #4105 passed with stages
in 85 minutes and 42 seconds
...@@ -79,9 +79,9 @@ def command_line_parser(description=__doc__, exclude_resources_from=[]): ...@@ -79,9 +79,9 @@ def command_line_parser(description=__doc__, exclude_resources_from=[]):
dir_group = parser.add_argument_group('\nDirectories that can be changed according to your requirements') dir_group = parser.add_argument_group('\nDirectories that can be changed according to your requirements')
dir_group.add_argument('-T', '--temp-directory', metavar = 'DIR', dir_group.add_argument('-T', '--temp-directory', metavar = 'DIR',
help = 'The directory for temporary files; if --temp-directory is not specified, "%s" is used' % temp) default = temp, help = 'The directory for temporary files')
dir_group.add_argument('-R', '--result-directory', metavar = 'DIR', dir_group.add_argument('-R', '--result-directory', metavar = 'DIR',
help = 'The directory for resulting score files; if --result-directory is not specified, "%s" is used' % results) default = results, help = 'The directory for resulting score files')
file_group = parser.add_argument_group('\nName (maybe including a path relative to the --temp-directory, if not specified otherwise) of files that will be generated. Note that not all files will be used by all algorithms') file_group = parser.add_argument_group('\nName (maybe including a path relative to the --temp-directory, if not specified otherwise) of files that will be generated. Note that not all files will be used by all algorithms')
file_group.add_argument('--extractor-file', metavar = 'FILE', default = 'Extractor.hdf5', file_group.add_argument('--extractor-file', metavar = 'FILE', default = 'Extractor.hdf5',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment