Skip to content

Commit

Permalink
tools: add "-A/--all" option to auto completion
Browse files Browse the repository at this point in the history
The tools recently got the --all option to probe on all devices. This
option also needs to be added ot the shell autocompletion.

Reported-by: Michael Adler <[email protected]>
Signed-off-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed Oct 19, 2023
1 parent 8df7c6e commit 8b6bcd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions completion/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def add_common_opts(parser):
parser.add_argument(
"-f", "--filepath", metavar="ENVFILE", help="Environment to use. Expects a file name, usually called BGENV.DAT."
).complete = shtab.FILE
parser.add_argument("-A", "--all", action="store_true", help="Probe all partitions for ebg environments")
parser.add_argument("-p", "--part", metavar="ENV_PART", type=int, help="Set environment partition to use")
parser.add_argument("-v", "--verbose", action="store_true", help="Be verbose")
parser.add_argument("-V", "--version", action="store_true", help="Print version")
Expand Down

0 comments on commit 8b6bcd7

Please sign in to comment.