Add usage
This commit is contained in:
parent
a0f06024ec
commit
36be6ff16f
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,11 @@ check_font() {
|
|||
fi
|
||||
}
|
||||
|
||||
usage() {
|
||||
echo "Usage:"
|
||||
echo "$(basename "${0}") --city <CITY> [--help] [--temperature-unit celsius|fahrenheit] [--wallpaper-file <FILE>] [--archive-folder <FOLDER>] [--screen-width <WIDTH>] [--font-name <FONT_NAME>] [--debug] [--logfile]"
|
||||
}
|
||||
|
||||
temp_unit=celsius
|
||||
wallpaper_file="${HOME}/wallpaper.jpg"
|
||||
wallpaper_file2="/etc/lightdm/background.jpg"
|
||||
|
@ -50,6 +55,11 @@ font_name=$("${gsettings_cmd}" get org.gnome.desktop.interface font-name | sed "
|
|||
while [ $# -gt 0 ]
|
||||
do
|
||||
case "$1" in
|
||||
"--help")
|
||||
shift
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
"--temperature-unit")
|
||||
shift
|
||||
temp_unit="${1}"
|
||||
|
|
Loading…
Reference in a new issue