diff options
Diffstat (limited to 'subcmds/forall.py')
| -rw-r--r-- | subcmds/forall.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 9da0c96e..4bae46af 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, list(parser.rargs)) | 136 | setattr(parser.values, option.dest or "command", list(parser.rargs)) |
| 137 | while parser.rargs: | 137 | while parser.rargs: |
| 138 | del parser.rargs[0] | 138 | del parser.rargs[0] |
| 139 | 139 | ||
| @@ -141,7 +141,6 @@ without iterating through the remaining projects. | |||
| 141 | p.add_option( | 141 | p.add_option( |
| 142 | "-r", | 142 | "-r", |
| 143 | "--regex", | 143 | "--regex", |
| 144 | dest="regex", | ||
| 145 | action="store_true", | 144 | action="store_true", |
| 146 | help="execute the command only on projects matching regex or " | 145 | help="execute the command only on projects matching regex or " |
| 147 | "wildcard expression", | 146 | "wildcard expression", |
| @@ -149,7 +148,6 @@ without iterating through the remaining projects. | |||
| 149 | p.add_option( | 148 | p.add_option( |
| 150 | "-i", | 149 | "-i", |
| 151 | "--inverse-regex", | 150 | "--inverse-regex", |
| 152 | dest="inverse_regex", | ||
| 153 | action="store_true", | 151 | action="store_true", |
| 154 | help="execute the command only on projects not matching regex or " | 152 | help="execute the command only on projects not matching regex or " |
| 155 | "wildcard expression", | 153 | "wildcard expression", |
| @@ -157,7 +155,6 @@ without iterating through the remaining projects. | |||
| 157 | p.add_option( | 155 | p.add_option( |
| 158 | "-g", | 156 | "-g", |
| 159 | "--groups", | 157 | "--groups", |
| 160 | dest="groups", | ||
| 161 | help="execute the command only on projects matching the specified " | 158 | help="execute the command only on projects matching the specified " |
| 162 | "groups", | 159 | "groups", |
| 163 | ) | 160 | ) |
| @@ -165,14 +162,12 @@ without iterating through the remaining projects. | |||
| 165 | "-c", | 162 | "-c", |
| 166 | "--command", | 163 | "--command", |
| 167 | help="command (and arguments) to execute", | 164 | help="command (and arguments) to execute", |
| 168 | dest="command", | ||
| 169 | action="callback", | 165 | action="callback", |
| 170 | callback=self._cmd_option, | 166 | callback=self._cmd_option, |
| 171 | ) | 167 | ) |
| 172 | p.add_option( | 168 | p.add_option( |
| 173 | "-e", | 169 | "-e", |
| 174 | "--abort-on-errors", | 170 | "--abort-on-errors", |
| 175 | dest="abort_on_errors", | ||
| 176 | action="store_true", | 171 | action="store_true", |
| 177 | help="abort if a command exits unsuccessfully", | 172 | help="abort if a command exits unsuccessfully", |
| 178 | ) | 173 | ) |
