Skip to content

Commit fc8305b

Browse files
committed
🚸 Use repeated flags in place of multi-value tags
1 parent 0c7b581 commit fc8305b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Changelog
1010
* 👽 Handle changes from C-PAC 1.7 to 1.8
1111
* 👷 Move tests from Travis to GitHub Actions
1212
* 📝 Note needlessness of crash command for C-PAC ≥ 1.8.0
13+
* 🚸 Use repeated flags in place of multi-value tags
1314

1415
`Version 0.3.1 <https://github.com/FCP-INDI/cpac/releases/tag/v0.3.1>`_
1516
=======================================================================

src/cpac/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _parser():
7474
parser.add_argument(
7575
'-o', '--container_option',
7676
dest='container_option',
77-
nargs='*',
77+
action='append',
7878
help='parameters and flags to pass through to Docker or Singularity\n'
7979
'\nThis flag can take multiple arguments so cannot '
8080
'be\nthe final argument before the command argument (i.e.,\nrun '
@@ -85,7 +85,7 @@ def _parser():
8585
parser.add_argument(
8686
'-B', '--custom_binding',
8787
dest='custom_binding',
88-
nargs='*',
88+
action='append',
8989
help='directories to bind with a different path in\nthe container '
9090
'than the real path of the directory.\nOne or more pairs in the '
9191
'format:\n\treal_path:container_path\n(eg, '

0 commit comments

Comments
 (0)