Skip to content

Commit 7ffd91f

Browse files
authored
Add default value for project_root
1 parent e4446b1 commit 7ffd91f

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

babs/cli.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,9 @@ def babs_check_setup_cli():
301301
'--project_root',
302302
'--project-root',
303303
help='Absolute path to the root of BABS project.'
304-
" For example, '/path/to/my_BABS_project/'.",
305-
required=True,
304+
" For example, '/path/to/my_BABS_project/'"
305+
" (default is current working directory).",
306+
default=os.getcwd()
306307
)
307308
parser.add_argument(
308309
'--job_test',
@@ -356,8 +357,9 @@ def babs_submit_cli():
356357
'--project_root',
357358
'--project-root',
358359
help='Absolute path to the root of BABS project.'
359-
" For example, '/path/to/my_BABS_project/'.",
360-
required=True,
360+
" For example, '/path/to/my_BABS_project/'"
361+
" (default is current working directory).",
362+
default=os.getcwd()
361363
)
362364

363365
# --count, --job: can only request one of them
@@ -503,8 +505,9 @@ def babs_status_cli():
503505
'--project_root',
504506
'--project-root',
505507
help='Absolute path to the root of BABS project.'
506-
" For example, '/path/to/my_BABS_project/'.",
507-
required=True,
508+
" For example, '/path/to/my_BABS_project/'"
509+
" (default is current working directory).",
510+
default=os.getcwd()
508511
)
509512
parser.add_argument(
510513
'--resubmit',
@@ -737,8 +740,9 @@ def babs_merge_cli():
737740
'--project_root',
738741
'--project-root',
739742
help='Absolute path to the root of BABS project.'
740-
" For example, '/path/to/my_BABS_project/'.",
741-
required=True,
743+
" For example, '/path/to/my_BABS_project/'"
744+
" (default is current working directory).",
745+
default=os.getcwd()
742746
)
743747
parser.add_argument(
744748
'--chunk-size',
@@ -799,8 +803,9 @@ def babs_unzip_cli():
799803
'--project_root',
800804
'--project-root',
801805
help='Absolute path to the root of BABS project.'
802-
" For example, '/path/to/my_BABS_project/'.",
803-
required=True,
806+
" For example, '/path/to/my_BABS_project/'"
807+
" (default is current working directory).",
808+
default=os.getcwd()
804809
)
805810
parser.add_argument(
806811
'--container_config_yaml_file',

0 commit comments

Comments
 (0)