Skip to content

Commit 44889ac

Browse files
committed
fix: Improve Zsh completion and help menu
1 parent ba6b001 commit 44889ac

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

completions/_bpm.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ _1st_arguments=(
1212
'upgrade:[TASK] Upgrade a package'
1313
'init:[box_name] [box_url] Initializes current folder for Vagrant usage'
1414
'--version:Prints the Vagrant version information'
15+
'--global:Switch to global dependency management'
16+
'--help:Show help'
1517
)
1618

1719
local expl

pkg/lib/util/util.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ util.setup_mode() {
295295
util.show_help() {
296296
cat <<"EOF"
297297
Usage:
298-
bpm [--help|--version|--global|-g] <command> [args...]
298+
bpm [--help|--version|--global] <command> [args...]
299299
300300
Subcommands:
301301
init <shell>
@@ -304,6 +304,9 @@ Subcommands:
304304
add [--ssh] [--branch=<name>] [--all] [[site/]<package>[@ref]...]
305305
Installs a package from GitHub (or a custom site)
306306
307+
upgrade <package...>
308+
Upgrades a package
309+
307310
remove [--all] <package...>
308311
Uninstalls a package
309312
@@ -317,9 +320,6 @@ Subcommands:
317320
package-path <package>
318321
Outputs the path for a package
319322
320-
upgrade <package...>
321-
Upgrades a package
322-
323323
complete <command...>
324324
Perform the completion for a particular subcommand. Used by the completion scripts
325325

0 commit comments

Comments
 (0)