Skip to content

Commit 3507b74

Browse files
authored
Fix: Normalize various dash variations in CLI arguments #477
This update ensures that different dash variations (e.g., en dash, em dash) in command-line arguments are replaced with standard options. It improves argument consistency and prevents unexpected behavior when parsing user inputs. Affected arguments include: - `--config-file`, `-c`, `--bot-config-file`, `-b`, `--force`, `--registry`, `-r`, and `--provision`.
1 parent 7b6909d commit 3507b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulip_bots/zulip_bots/run.py

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

2020

2121
def normalize_args() -> None:
22-
"""Replaces various dash variations in arguments with standard options."""
22+
"""Replaces various dash variations in arguments with standard options in command lines interfaces."""
2323
dash_variations = r"[\u002D\u2010\u2011\u2012\u2013\u2014\u2015]"
2424
for i, arg in enumerate(sys.argv):
2525
if re.match(rf"^{dash_variations}{{2}}config{dash_variations}file$", arg):

0 commit comments

Comments
 (0)