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

main
earnest ma 2021-10-16 18:31:55 -04:00
parent 93652c35a3
commit a9e21971fb
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
2 changed files with 6 additions and 0 deletions

3
aptpkg
View File

@ -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"

View File

@ -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