Skip to content

Commit 0d036b0

Browse files
committed
flux-mini: do not allow option abbreviation
Problem: flux-mini currently accepts option abbreviations since this is default argparse behviour. However, this means `flux mini run` accepts `--cores=N` for `--cores-per-task`, which could confuse users. Set the allow_abbrev=False flag on flux-mini ArgumentParser() constructor.
1 parent 27a25f0 commit 0d036b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/flux-mini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def create_parser(exclude_io=False):
452452
"""
453453
Create default parser with args for mini subcommands
454454
"""
455-
parser = argparse.ArgumentParser(add_help=False)
455+
parser = argparse.ArgumentParser(add_help=False, allow_abbrev=False)
456456
parser.add_argument(
457457
"-t",
458458
"--time-limit",

0 commit comments

Comments
 (0)