|
@@ -31,6 +31,8 @@ usage() {
|
31
|
31
|
"-O, --object Treat MODULE as function or variable" \
|
32
|
32
|
" name and find respective module first." \
|
33
|
33
|
"-d, --debug Turn on debugging" \
|
|
34
|
+ "-h, --hide REGEX Use REGEX to determine what is hidden." \
|
|
35
|
+ " (See also -a and 'sfdoc sfdoc'.)" \
|
34
|
36
|
"-a, --all Don't ignore hidden (starting with" \
|
35
|
37
|
" underscore) modules or objects" \
|
36
|
38
|
"--encoding ENC Override encoding of the source text" \
|
|
@@ -103,6 +105,7 @@ main() {
|
103
|
105
|
-O|--object) spectype=obj; shift ;;
|
104
|
106
|
-d|--debug) PRETTY_DEBUG=true; shift ;;
|
105
|
107
|
-a|--all) SFDOC_SHOW_HIDDEN=true; shift ;;
|
|
108
|
+ -h|--hide) SFDOC_SHOW_HIDDEN=false; SFDOC_HIDE_REGEX="$2"; shift 2 || usage -w "no REGEX?" ;;
|
106
|
109
|
-I|--include) SHELLFU_PATH="$2:$SHELLFU_PATH"; shift 2 || usage -w "no PTH?" ;;
|
107
|
110
|
-s|--src) action=src; shift; break ;;
|
108
|
111
|
-l|--ls) action=lsx; shift; break ;;
|