diff options
Diffstat (limited to 'subcmds/forall.py')
| -rw-r--r-- | subcmds/forall.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 4bae46af..57a41fc1 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
| @@ -133,7 +133,7 @@ without iterating through the remaining projects. | |||
| 133 | 133 | ||
| 134 | @staticmethod | 134 | @staticmethod |
| 135 | def _cmd_option(option, _opt_str, _value, parser): | 135 | def _cmd_option(option, _opt_str, _value, parser): |
| 136 | setattr(parser.values, option.dest or "command", list(parser.rargs)) | 136 | setattr(parser.values, option.dest, list(parser.rargs)) |
| 137 | while parser.rargs: | 137 | while parser.rargs: |
| 138 | del parser.rargs[0] | 138 | del parser.rargs[0] |
| 139 | 139 | ||
| @@ -161,6 +161,7 @@ without iterating through the remaining projects. | |||
| 161 | p.add_option( | 161 | p.add_option( |
| 162 | "-c", | 162 | "-c", |
| 163 | "--command", | 163 | "--command", |
| 164 | dest="command", | ||
| 164 | help="command (and arguments) to execute", | 165 | help="command (and arguments) to execute", |
| 165 | action="callback", | 166 | action="callback", |
| 166 | callback=self._cmd_option, | 167 | callback=self._cmd_option, |
