Browse Source

Use mkhelp to print help message

Alois Mahdal 9 years ago
parent
commit
c825d0bbde
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      src/ffoo/saturnin_meta.sh

+ 9
- 9
src/ffoo/saturnin_meta.sh View File

@@ -5,15 +5,15 @@ ffoo import inigrep
5 5
 ffoo import pretty
6 6
 
7 7
 saturnin_help() {
8
-    echo ""
9
-    echo "built-in sub-commands:"
10
-    echo ""
11
-    echo "    conf"
12
-    echo "    help"
13
-    echo ""
14
-    echo "installed sub-commands:"
15
-    echo ""
16
-    saturnin_lssc | sed -e 's/^/    /'
8
+    {
9
+        echo "built-in commands:"
10
+        echo "    conf"
11
+        echo "    help"
12
+        echo ""
13
+        echo "installed commands:"
14
+        saturnin_lssc \
15
+          | sed -e 's/^/    /'
16
+    } | mkhelp -E -f -
17 17
     return "$FFOO_EXIT_OK"
18 18
 }
19 19