Skip to content

Commit

Permalink
style(args): add version to help text
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Mar 26, 2023
1 parent 0c4229a commit 2a2526d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion alpkg
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash

set -e
_VERSION="0.0.1"

#======================= C o n s t a n t s =======================#

PACKAGER=""
APORTS_URL=""
Expand All @@ -13,8 +16,10 @@ export ALPINE_BRANCH=${ALPINE_BRANCH:="latest-stable"}
export ALPINE_PACKAGES=${ALPINE_PACKAGES:="build-base doas bash bash-doc bash-completion alpine-sdk atools vim zellij"}
export CHROOT_KEEP_VARS=${CHROOT_KEEP_VARS:="ARCH TERM SHELL PACKAGE_DIR"}

#======================= F u n c t i o n s =======================#

show-usage() {
echo "https://github.com/orhun/alpkg"
echo "https://github.com/orhun/alpkg ($_VERSION)"
echo ""
echo "Usage: alpkg [init|edit|fetch|update] [<package>]"
echo ""
Expand Down Expand Up @@ -205,6 +210,8 @@ destroy() {
"$CHROOT_DIR/destroy" --remove
}

#============================ M a i n ============================#

case "$1" in
init)
if [ "$#" -ne 5 ] || [ "$2" != "--packager" ] || [ "$4" != "--aports" ]; then
Expand Down

0 comments on commit 2a2526d

Please sign in to comment.