antfu-collective / bumpp

Interactive CLI that bumps your version numbers and more
https://jstools.dev/version-bump-prompt/
MIT License
597 stars 43 forks source link

CLI option `--version` is ambugious and duplicated #51

Open mkpoli opened 6 days ago

mkpoli commented 6 days ago

Describe the bug

-v or --version are both defined to be as showing the version of bumpp itself, as well as specifiying the target version

$ bumpp --help
bumpp/9.7.1

Usage:
  $ bumpp [...files]

Options:
  -v, --version                Display version number
  --preid <preid>              ID for prerelease
  --all                        Include all files (default: false)        
  --no-git-check               Skip git check (default: true)
  -c, --commit [msg]           Commit message (default: true)
  --no-commit                  Skip commit (default: false)
  -t, --tag [tag]              Tag name (default: true)
  --no-tag                     Skip tag (default: false)
  --sign                       Sign commit and tag
  -p, --push                   Push to remote (default: true)
  -y, --yes                    Skip confirmation (default: false)        
  -r, --recursive              Bump package.json files recursively (default: false)
  --no-verify                  Skip git verification (default: true)     
  --ignore-scripts             Ignore scripts (default: false)
  -q, --quiet                  Quiet mode
  -v, --version <version>      Target version
  --current-version <version>  Current version
  --print-commits              Print recent commits (default: true)      
  -x, --execute <command>      Commands to execute after version bumps   
  -h, --help                   Display this message                

image

Reproduction

bumpp --version 0.1.0

results in

bumpp/9.7.1 linux-x64 node-v20.10.0
9.7.1

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
    Memory: 106.01 GB / 127.92 GB
  Binaries:
    Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.5.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.10.0 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.30 - ~\.bun\bin\bun.EXE
  Browsers:
    Chrome: 129.0.6668.100
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355

Used Package Manager

bun

Validations

Contributions