Skip to content

Commit 820493f

Browse files
committed
feat: Allow passing -g for global
1 parent c7d0320 commit 820493f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/lib/cmd/bpm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ main() {
1919

2020
for arg; do
2121
case "$arg" in
22-
--help)
22+
--help|-h)
2323
util.show_help
2424
exit
2525
;;
26-
--version)
26+
--version|-v)
2727
cat <<-EOF
2828
Version: $PROGRAM_VERSION
2929
EOF
3030
exit
3131
;;
32-
--global)
32+
--global|-g)
3333
is_global='yes'
3434
shift
3535
;;

pkg/lib/util/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ util.get_project_root_dir() {
243243
util.show_help() {
244244
cat <<"EOF"
245245
Usage:
246-
bpm [--help|--version|--global] <command> [args...]
246+
bpm [--help|--version|--global|-g] <command> [args...]
247247
248248
Subcommands:
249249
init <shell>

0 commit comments

Comments
 (0)