Skip to content

"--verbose" flag not available; "-v" flag identified as two different options #72

@arthur-2sheds-jackson

Description

@arthur-2sheds-jackson

Describe the bug
On keymaster v1.5.1, windows amd64; trying to track down a problem with sqlite, I attempted to enable the --verbose flag. Instead of running the TUI (with verbose output), Error: unknown flag: --verbose was returned. Tried running with -v instead (as described at https://toeirei.github.io/Keymaster/documentation.html#troubleshooting), only to have the version string returned.

Related, the "help contents" returned indicate that the -v flag returns the program version, while the aforementioned link states that it is a short form of --verbose

To Reproduce
Steps to reproduce the behavior:
Run keymaster.exe --verbose
Run keymaster.exe -v

Expected behavior
The program should run the TUI, and produce verbose/debug output.

Screenshots

C:\tools\keymaster>keymaster.exe --verbose
Error: unknown flag: --verbose
Usage:
  keymaster [flags]
  keymaster [command]

Available Commands:
  audit                    Audit hosts for configuration drift
  backup                   Create a compressed (zstd) JSON backup of the database
  completion               Generate the autocompletion script for the specified shell
  db-maintain              Run database maintenance (VACUUM/OPTIMIZE) for the configured DB
  debug                    Dump debug information about config, env, flags and settings
  decommission             Decommission one or more accounts by removing SSH access and deleting from database
  deploy                   Deploy authorized_keys to one or all hosts
  export-ssh-client-config Export SSH config from active accounts
  help                     Help about any command
  import                   Import public keys from an authorized_keys file
  migrate                  Migrate data from the current database to a new one
  restore                  Restore the database from a compressed JSON backup
  rotate-key               Rotates the active Keymaster system key
  trust-host               Adds a host's public key to the list of known hosts
  version                  Print version

Flags:
      --config string          config file
      --database.dsn string    Database connection string (DSN) (default "./keymaster.db")
      --database.type string   Database type (e.g., sqlite, postgres) (default "sqlite")
  -h, --help                   help for keymaster
      --language string        TUI language ("en", "de") (default "en")
  -v, --version                version for keymaster

Use "keymaster [command] --help" for more information about a command.

C:\tools\keymaster>keymaster.exe -v
keymaster version v1.5.1
2026/01/18 22:56:33 Bootstrap cleanup complete.

C:\tools\keymaster>

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise
  • Version 22H2 19045.6809

Additional context
(none)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliEverything related to our CLI component

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions