Skip to content

Commit 70043af

Browse files
committed
FIX: valid commands bug
1 parent d5498e2 commit 70043af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/whats_new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Detailed list of changes
4747
🪲 Bug fixes
4848
^^^^^^^^^^^^
4949

50-
- None yet
50+
- Fixed a bug that modified the name and help message of some of the available commands, by `Alex Lopez Marquez`_ (:gh:`1441`)
5151

5252
⚕️ Code health
5353
^^^^^^^^^^^^^^

mne_bids/commands/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
mne_bin_dir = Path(mne_bids.__file__).parent
1313
valid_command_paths = sorted((mne_bin_dir / "commands").glob("mne_bids_*.py"))
14-
valid_commands = [cmd.stem.lstrip("mne_bids_") for cmd in valid_command_paths]
14+
valid_commands = [cmd.stem.removeprefix("mne_bids_") for cmd in valid_command_paths]
1515

1616

1717
def print_help():

0 commit comments

Comments
 (0)