feat: -v / --version to show current version

main
earnest ma 2 years ago
parent 93652c35a3
commit a9e21971fb
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A

@ -18,6 +18,7 @@ Usage:
aptpkg --all [directory] Build all folders under directory
aptpkg --auto (commit id) Autobuild modified packages from commit
aptpkg -h, --help Show help
aptpkg -v, --version Show version
EOF
}
@ -170,6 +171,8 @@ case $1 in
--auto)
shift
change_autobuild_pkgs "$1" ;;
-v|--version)
echo "aptpkg $APTPKG_VERSION" ;;
*)
if [ $# -ne 1 ]; then
error_usage_die "You must provide one directory"

@ -9,10 +9,13 @@ aptpkg - easily create/ get debian packages
*aptpkg* _path_
*aptpkg* --all _path_
*aptpkg* --auto [git commit hash]
*aptpkg* -h | --help
*aptpkg* -v | --version
# DESCRIPTION
aptpkg can be used to easily create/ get debian packages, and can be used with

Loading…
Cancel
Save