Skip to content

BUGFIX: Two global flags can be appreviated to -v, causing confusion#4141

Merged
tlimoncelli merged 1 commit into
mainfrom
tlim_flagv
Mar 9, 2026
Merged

BUGFIX: Two global flags can be appreviated to -v, causing confusion#4141
tlimoncelli merged 1 commit into
mainfrom
tlim_flagv

Conversation

@tlimoncelli
Copy link
Copy Markdown
Contributor

Issue

Two global flags can be abbreviated to -v. Both --debug and --version can be abbreviated to -v. This causes confusion (example: #4138).

The "global options" section of dnscontrol -h shows:

GLOBAL OPTIONS:
   --debug, -v        Enable debug logging
   --allow-fetch      Enable JS fetch(), dangerous on untrusted code!
   --disableordering  Disables update reordering
   --no-colors        Disable colors
   --help, -h         show help
   --version, -v      print the version

Resolution

Remove -v from --debug. The flag parsing module we use really really really wants to own the -v flag.

@tlimoncelli tlimoncelli merged commit d6cb914 into main Mar 9, 2026
44 of 46 checks passed
@tlimoncelli tlimoncelli deleted the tlim_flagv branch March 9, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants