Skip to content

cannot display version properly #40

@double12gzh

Description

@double12gzh

1. Description

aigit cannot display version with -v/-version/--version

2. Version

git commit id: 8fdd3df

3. Reproduce

  • example1
./aigit -version
Error: unknown shorthand flag: 'v' in -version
Usage:
  aigit [command]

Available Commands:
  auth        Manage LLM providers and API keys
  commit      Generate git commit message including title and body
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Print the version of aigit

Flags:
  -h, --help   help for aigit

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

unknown shorthand flag: 'v' in -version
  • example2
./aigit --version
Error: unknown flag: --version
Usage:
  aigit [command]

Available Commands:
  auth        Manage LLM providers and API keys
  commit      Generate git commit message including title and body
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Print the version of aigit

Flags:
  -h, --help   help for aigit

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

unknown flag: --version
  • example3
 ./aigit -v
Error: unknown shorthand flag: 'v' in -v
Usage:
  aigit [command]

Available Commands:
  auth        Manage LLM providers and API keys
  commit      Generate git commit message including title and body
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Print the version of aigit

Flags:
  -h, --help   help for aigit

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

unknown shorthand flag: 'v' in -v

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions