From a211ae78e55e93e06d6943110e1fed2c6e883482 Mon Sep 17 00:00:00 2001 From: Jeremy Cantrell Date: Sun, 12 May 2024 18:15:05 -0500 Subject: [PATCH] Fix help option flag in completion --- completion/btrfs-snapshots.bash | 2 +- completion/btrfs-snapshots.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/btrfs-snapshots.bash b/completion/btrfs-snapshots.bash index dfd57f6..431f805 100644 --- a/completion/btrfs-snapshots.bash +++ b/completion/btrfs-snapshots.bash @@ -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 diff --git a/completion/btrfs-snapshots.zsh b/completion/btrfs-snapshots.zsh index d26795d..0c91fbf 100644 --- a/completion/btrfs-snapshots.zsh +++ b/completion/btrfs-snapshots.zsh @@ -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"