Skip to content

Commit

Permalink
Fix help option flag in completion
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcantrell committed May 12, 2024
1 parent 8531596 commit a211ae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completion/btrfs-snapshots.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ _btrfs_snapshots() {

local profiles_dir=${BTRFS_SNAPSHOTS_CONFIG_DIR:-/usr/local/etc/btrfs-snapshots}/profile.d

local options=(-h)
local options=(--help)
local actions=(create prune)

case $cur in
Expand Down
2 changes: 1 addition & 1 deletion completion/btrfs-snapshots.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local curcontext=$curcontext context state state_descr line opt_args

_arguments -C -s -S -A "-*" : \
"(- : *)-h[show the help text]" \
"(- : *)--help[show the help text]" \
':action:((
"create\:create a new snapshot"
"prune\:delete old snapshots"
Expand Down

0 comments on commit a211ae7

Please sign in to comment.