mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Improve --help and --complete argument handling
This commit is contained in:
11
lib/util.sh
Normal file
11
lib/util.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
calling-help() {
|
||||
if [[ " $@ " != *" --help "* ]] && [[ " $@ " != *" -h "* ]]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
calling-complete() {
|
||||
if [[ " $@ " != *" --complete "* ]]; then
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user