Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ mud --diverged git pull
| `mud complete-branch-all` | prints unique local and remote branch names across repositories for shell completion. |
| `mud tags`/`mud t` | displays git tags in repositories. |

`--` format is also supported. An example would be `mud -- git status`.

### Flags

`mud <FLAG> <COMMAND>` will execute a bash command across all repositories.
Expand Down
5 changes: 5 additions & 0 deletions src/mud/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ def _filter_with_arguments(self) -> None:
index = 1
while index < len(sys.argv):
arg = sys.argv[index]
# Support '-- command' style: treat everything after '--' as the command
if arg == '--':
self.command = ' '.join(sys.argv[index+1:])
del sys.argv[index:]
break
if not arg.startswith('-'):
break
if any(arg.startswith(prefix) for prefix in LABEL_PREFIX):
Expand Down
Loading