Skip to content

Commit

Permalink
chore: print version
Browse files Browse the repository at this point in the history
  • Loading branch information
weskoerber committed May 3, 2024
1 parent b0ef09a commit 5e09aff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zvm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ readonly arch="$(uname -m)"
readonly target="${arch}-${os}"
readonly bin_name="zig"
readonly self_name=$(basename $0)
readonly self_version="0.1.0"
readonly versions_file="${ZVM_HOME}/versions.json"

# Global options
Expand Down Expand Up @@ -374,7 +375,8 @@ $self_name - Zig Version Manager
Usage: zvm [OPTIONS] [command] [...]
Options:
-v Enable verbose script output
-v Enable verbose script output
--version Print the version and exit
Commands:
list [OPTIONS] List Zig versions available in the remote index
Expand Down Expand Up @@ -429,6 +431,10 @@ args_parse_global() {
o_verbose=1
shift
;;
--version)
echo "$self_version" >&2
exit 0
;;
*)
break
;;
Expand Down

0 comments on commit 5e09aff

Please sign in to comment.