File: cmd-help

package info (click to toggle)
remctl 3.18-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,612 kB
  • sloc: ansic: 19,504; sh: 5,386; perl: 1,778; java: 740; makefile: 715; xml: 502; python: 430
file content (18 lines) | stat: -rwxr-xr-x 323 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
case "$1" in
help)
    case "$2" in
    subhelp)    echo "subhelp text" ;;
    *)          echo "help text" ;;
    esac ;;
summary)
    case "$2" in
    subcommand) echo "subcommand summary" ;;
    *)          echo "summary text" ;;
    esac ;;
*)
    echo "requested '$1' for help"
    exit 1
    ;;
esac
exit 0