]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[set-default-theme] Make --help format match that of plymouth and plymouthd
authorCharlie Brej <cbrej@cs.man.ac.uk>
Mon, 14 Dec 2009 21:29:01 +0000 (21:29 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Mon, 14 Dec 2009 21:29:01 +0000 (21:29 +0000)
Minor rejig to make the help messages more consistant. Also removes some tabs
and empty lines.

scripts/plymouth-set-default-theme.in

index 1929f00d88199962f140ca30d79628ca818357e6..e73105166db264f4f409ef8706af4ff743c868c5 100755 (executable)
@@ -13,7 +13,6 @@ if [ -z "$PLYMOUTH_PLUGIN_PATH" ]; then
     fi
 fi
 
-
 function usage ()
 {
   echo "usage: plymouth-set-default-theme { --list | --reset | <theme-name> [ --rebuild-initrd ] | --help }"
@@ -21,14 +20,14 @@ function usage ()
 
 function show_help() {
   cat <<EOF
+Plymouth theme chooser
+$(usage)
 
-    $(usage)
-
-     --help             show this help message
-     --list             show available themes
-     --reset            reset to default theme
-     --rebuild-initrd   rebuild initrd (necessary after changing theme)
-     <theme-name>       name of new theme to use (see --list for available themes)
+  --help             Show this help message
+  --list             Show available themes
+  --reset            Reset to default theme
+  --rebuild-initrd   Rebuild initrd (necessary after changing theme)
+  <theme-name>       Name of new theme to use (see --list for available themes)
 
 EOF
 }
@@ -95,9 +94,9 @@ while [ $# -gt 0 ]; do
                 DO_RESET=1
         ;;
 
-       --help)
-               DO_HELP=1
-       ;;
+        --help)
+                DO_HELP=1
+        ;;
 
         *)
                 if [ -n "$THEME_NAME" ]; then
@@ -126,7 +125,7 @@ done
 
 if [ $DO_HELP -eq 1 ]; then
         show_help
-       exit $?
+        exit $?
 fi
 
 if [ $DO_LIST -ne 0 ]; then