CLI verbose flag mismatch with documented verbosity levels
Description:-
The -v / --verbose flag is currently defined as a boolean flag (store_true), but the help text indicates that it supports verbosity levels (0–5).
From arg_parse.py definition:
engine_options.add_argument(
"-v",
"--verbose",
action="store_true",
dest="verbose_mode",
default=Config.settings.verbose_mode,
help=("verbose_mode"),
)
engine_options.add_argument(
"--verbose-event",
action="store_true",
dest="verbose_event",
default=Config.settings.verbose_event,
help=("verbose_event"),
)
but in en.yaml:- verbose_mode: verbose mode level (0-5) (default 0) verbose_event: enable verbose event to see state of each thread when attempting to run "python nettacker.py -v 2" I got an error "Nettacker: error: unrecognized arguments: 2"
Is verbose_mode intended to support verbosity levels (0–5), or is it meant to remain a boolean flag? If multi-level verbosity is intended, the CLI definition may need to be updated to accept an integer argument. If boolean behavior is intended, the help text should be updated for clarity. Happy to submit a PR once intended behavior is clarified.
it's a Boolean. Besides for multilevel verbosity you usually do -vv or -vvv, which won't work for Nettacker because we don't have any "extra" logs we're hiding other than those given by -v.
On Sat, 21 Feb, 2026, 10:35 pm Gauravsharma2040, @.***> wrote:
Gauravsharma2040 created an issue (OWASP/Nettacker#1296) https://github.com/OWASP/Nettacker/issues/1296
Description:- The -v / --verbose flag is currently defined as a boolean flag (store_true), but the help text indicates that it supports verbosity levels (0–5). From arg_parse.py definition: engine_options.add_argument( "-v", "--verbose", action="store_true", dest="verbose_mode", default=Config.settings.verbose_mode, help=
("verbose_mode"), ) engine_options.add_argument( "--verbose-event", action="store_true", dest="verbose_event", default=Config.settings.verbose_event, help=("verbose_event"), ) but in en.yaml:- verbose_mode: verbose mode level (0-5) (default 0) verbose_event: enable verbose event to see state of each thread when attempting to run "python nettacker.py -v 2" I got an error "Nettacker: error: unrecognized arguments: 2"
Is verbose_mode intended to support verbosity levels (0–5), or is it meant to remain a boolean flag? If multi-level verbosity is intended, the CLI definition may need to be updated to accept an integer argument. If boolean behavior is intended, the help text should be updated for clarity. Happy to submit a PR once intended behavior is clarified.
— Reply to this email directly, view it on GitHub https://github.com/OWASP/Nettacker/issues/1296, or unsubscribe https://github.com/notifications/unsubscribe-auth/BER5OH4YCOITJUDHDKVWWFT4NCF7FAVCNFSM6AAAAACV3NB25GVHI2DSMVQWIX3LMV43ASLTON2WKOZTHE3TEMZWGU2DIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
it's a Boolean. Besides for multilevel verbosity you usually do -vv or -vvv, which won't work for Nettacker because we don't have any "extra" logs we're hiding other than those given by -v.
Thanks for the clarification ,that makes sense.
In that case, would it be better to update the help text to reflect that -v is strictly a boolean flag rather than suggesting verbosity levels?
I’d be happy to open a small PR to align the documentation if that would be helpful.
--verbose_event and -v (--verbose) are two different things (verbose_event being a subset of verbose). We don't have different levels for verbosity. See logger.py. Refactoring the yaml text would be the way to go in my opinion.
“Should verbose remain boolean, or should it support integer levels (0–5)? I’d be happy to help update either the CLI or documentation.”
I looked into this. As @pUrGe12 confirmed, -v / --verbose is strictly a boolean flag (store_true in arg_parser.py), but the locale text says "verbose mode level (0-5) (default 0)" which is misleading.
The fix would be updating verbose_mode in nettacker/locale/en.yaml (and the other 23 locale files) to something like:
verbose_mode: enable verbose output (default off)
Also noticed pt-br.yaml uses verbose_level instead of verbose_mode -- that key name inconsistency could be fixed in the same PR.
Happy to submit a PR if a maintainer can confirm this direction. @arkid15r @securestep9
I looked into this. As @pUrGe12 confirmed,
-v/--verboseis strictly a boolean flag (store_trueinarg_parser.py), but the locale text says "verbose mode level (0-5) (default 0)" which is misleading.The fix would be updating
verbose_modeinnettacker/locale/en.yaml(and the other 23 locale files) to something like:verbose_mode: enable verbose output (default off)Also noticed
pt-br.yamlusesverbose_levelinstead ofverbose_mode-- that key name inconsistency could be fixed in the same PR.Happy to submit a PR if a maintainer can confirm this direction. @arkid15r @securestep9
Thanks for digging into this,
Based on previous maintainer guidance, CLI/key-related updates are typically limited to en.yaml since it is nettackers default , with other locale updates handled in separate PRs for easier review. So it may be better to: Keep this PR limited to en.yaml Open a separate PR for updating the remaining locale files Handle the verbose_level key inconsistency independently since it affects key structure
Happy to proceed either way if maintainers prefer otherwise.