Skip to content

CLI: refactor --version/-v option

Jakub Ružička requested to merge version into master

Remove --version option from make-archive, it was harmful and inconsistent.

--version now always refers to upstream so it implies --upstream.

--version now conflicts with --archive/--srcpkg preventing ambiguous argument combos.

These change make --version usage consistent and more pleasant across all apkg commands while reducing chances of unexpected results.

apkg get-archive -v 1.2.3
apkg srcpkg -v 1.2.3
apkg build -v 1.2.3

Fixes: #51 (closed) Fixes: #52 (closed)

Merge request reports