Skip to content

Commit

Permalink
sort arg choices
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 4, 2024
1 parent 6ffdd4d commit b11279b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bbot/scanner/preset/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def create_parser(self, *args, **kwargs):
"--modules",
nargs="+",
default=[],
help=f'Modules to enable. Choices: {",".join(self.preset.module_loader.scan_module_choices)}',
help=f'Modules to enable. Choices: {",".join(sorted(self.preset.module_loader.scan_module_choices))}',
metavar="MODULE",
)
modules.add_argument("-l", "--list-modules", action="store_true", help=f"List available modules.")
Expand All @@ -232,7 +232,7 @@ def create_parser(self, *args, **kwargs):
"--flags",
nargs="+",
default=[],
help=f'Enable modules by flag. Choices: {",".join(self.preset.module_loader.flag_choices)}',
help=f'Enable modules by flag. Choices: {",".join(sorted(self.preset.module_loader.flag_choices))}',
metavar="FLAG",
)
modules.add_argument("-lf", "--list-flags", action="store_true", help=f"List available flags.")
Expand Down Expand Up @@ -289,7 +289,7 @@ def create_parser(self, *args, **kwargs):
"--output-modules",
nargs="+",
default=[],
help=f'Output module(s). Choices: {",".join(self.preset.module_loader.output_module_choices)}',
help=f'Output module(s). Choices: {",".join(sorted(self.preset.module_loader.output_module_choices))}',
metavar="MODULE",
)
output.add_argument("--json", "-j", action="store_true", help="Output scan data in JSON format")
Expand Down

0 comments on commit b11279b

Please sign in to comment.