summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-27 19:59:26 +0200
committerDave Reisner <dreisner@archlinux.org>2012-09-30 00:06:09 +0200
commitc396a58ba7d4ce9f7087379537fa2251a90af52a (patch)
treeae4a2e8ec42ce82c4f8de4e4038feb7796ced821 /bash-completion
parent887511601787db60b5692802fc2ccdfd47c0d698 (diff)
downloadmkinitcpio-c396a58ba7d4ce9f7087379537fa2251a90af52a.tar.gz
mkinitcpio-c396a58ba7d4ce9f7087379537fa2251a90af52a.tar.xz
lsinitcpio: add -l, --list option; define as default
This is the default action for lsinitcpio. Add it just for the purpose of clarity. This change also separates out true options from 'actions' and validates that the user only passed a single action to lsinitcpio. Update the manpage accordingly. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash-completion b/bash-completion
index 4e548af..6ef4e93 100644
--- a/bash-completion
+++ b/bash-completion
@@ -3,7 +3,8 @@
_lsinitcpio() {
local cur opts
- opts=(-a --analyze -c --config -h --help -n --nocolor -v --verbose -x --extract)
+ opts=(-a --analyze -c --config -h --help -l --list
+ -n --nocolor -v --verbose -x --extract)
_get_comp_words_by_ref cur