mirror of
https://github.com/adi1090x/rofi.git
synced 2026-02-01 16:40:11 +01:00
shorten flags
This commit is contained in:
parent
3475382b6b
commit
1f261383c3
@ -16,8 +16,8 @@ theme="style-1"
|
|||||||
# Parse flags
|
# Parse flags
|
||||||
while getopts "t:s:" opt; do
|
while getopts "t:s:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
t) type="$OPTARG" ;;
|
t) type="type-$OPTARG" ;;
|
||||||
s) theme="$OPTARG" ;;
|
s) theme="style-$OPTARG" ;;
|
||||||
\?) echo "Invalid option: -$OPTARG" >&2; exit 1 ;;
|
\?) echo "Invalid option: -$OPTARG" >&2; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user