@@ -26,41 +26,52 @@ def _build_arg_parser():
2626
2727 p .add_argument ("-d" , "--dicom_dir" ,
2828 required = True , nargs = "+" ,
29- help = "DICOM directory(ies) or archive(s) (" +
30- DEFAULT .arch_extensions + ")." )
29+ help = "Path to one or more directories or archives"
30+ f" ({ DEFAULT .arch_extensions } ) containing the DICOM files for a"
31+ " single participant and session to be converted to BIDS."
32+ )
3133
3234 p .add_argument ("-p" , "--participant" ,
3335 required = True ,
34- help = "Participant ID." )
36+ help = "Participant ID to be used in the BIDS dataset filenames"
37+ " (e.g. sub-<PARTICIPANT>)."
38+ )
3539
3640 p .add_argument ("-s" , "--session" ,
3741 required = False ,
3842 default = DEFAULT .cli_session ,
39- help = "Session ID. [%(default)s]" )
43+ help = "Session ID to be used in the BIDS dataset filenames"
44+ " (e.g. ses-<SESSION>). If not provided, no session"
45+ " entity will be added to the BIDS filenames."
46+ )
4047
4148 p .add_argument ("-c" , "--config" ,
4249 required = True ,
43- help = "JSON configuration file (see example/config.json)." )
50+ help = "JSON configuration that specifies additional parameters for"
51+ " BIDS conversion. See the documentation for more information:"
52+ f" \n https://unfmontreal.github.io/Dcm2Bids/{ __version__ } /how-to/create-config-file/" # noqa: E501
53+ )
4454
4555 p .add_argument ("-o" , "--output_dir" ,
4656 required = False ,
4757 default = DEFAULT .output_dir ,
48- help = "Output BIDS directory. [%(default)s]" )
58+ help = "Output BIDS directory. Defaults to the current working directory."
59+ )
4960
5061 g = p .add_mutually_exclusive_group ()
5162 g .add_argument ("--auto_extract_entities" ,
5263 action = 'store_true' ,
5364 help = "If set, it will automatically try to extract entity"
5465 "information [task, dir, echo] based on the suffix and datatype."
55- " [%(default)s]" )
66+ " Default is [%(default)s]" )
5667
5768 g .add_argument ("--do_not_reorder_entities" ,
5869 action = 'store_true' ,
5970 help = "If set, it will not reorder entities according to the relative "
6071 "ordering indicated in the BIDS specification and use the "
6172 "order defined in custom_entities by the user.\n "
6273 "Cannot be used with --auto_extract_entities. "
63- " [%(default)s]" )
74+ " Default is [%(default)s]" )
6475
6576 p .add_argument ("--bids_validate" ,
6677 action = 'store_true' ,
@@ -87,7 +98,9 @@ def _build_arg_parser():
8798 required = False ,
8899 default = DEFAULT .cli_log_level ,
89100 choices = ["DEBUG" , "INFO" , "WARNING" , "ERROR" , "CRITICAL" ],
90- help = "Set logging level to the console. [%(default)s]" )
101+ help = "Set logging level to the console."
102+ " The default level is [%(default)s]"
103+ )
91104
92105 p .add_argument ("-v" , "--version" ,
93106 action = "version" ,
0 commit comments