diff --git a/tests/test_help_docs.py b/tests/test_help_docs.py index 879d198..c9a8637 100644 --- a/tests/test_help_docs.py +++ b/tests/test_help_docs.py @@ -12,7 +12,7 @@ def test_run_help_prints_docstring_for_known_command(monkeypatch, capsys): "path": "trushell/commands/settings.py", "function": "run_settings", } - } + }, ) # Provide a minimal module object with the expected function and diff --git a/trushell/cli.py b/trushell/cli.py index 0eb1674..d6f5d3d 100644 --- a/trushell/cli.py +++ b/trushell/cli.py @@ -29,9 +29,6 @@ def app_with_lower() -> None: if len(sys.argv) > 1: argv_copy = sys.argv.copy() if argv_copy[1].lower() not in {"--help", "-h", "version"}: - # Normalize the command name to lowercase for case-insensitive - # invocation, but preserve the case of subsequent arguments - # (e.g., filenames) which may be case-sensitive. first = argv_copy[1].lower() rest = argv_copy[2:] raw = " ".join([first] + rest)