Browse Source

Add -h to enable overriding definition of "hidden"

Alois Mahdal 4 years ago
parent
commit
82a1c25930
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/bin/sfdoc

+ 3
- 0
src/bin/sfdoc View File

31
             "-O, --object       Treat MODULE as function or variable"   \
31
             "-O, --object       Treat MODULE as function or variable"   \
32
             "                   name and find respective module first." \
32
             "                   name and find respective module first." \
33
             "-d, --debug        Turn on debugging"                      \
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
             "-a, --all          Don't ignore hidden (starting with"     \
36
             "-a, --all          Don't ignore hidden (starting with"     \
35
             "                   underscore) modules or objects"         \
37
             "                   underscore) modules or objects"         \
36
             "--encoding ENC     Override encoding of the source text"   \
38
             "--encoding ENC     Override encoding of the source text"   \
103
         -O|--object)    spectype=obj;               shift ;;
105
         -O|--object)    spectype=obj;               shift ;;
104
         -d|--debug)     PRETTY_DEBUG=true;          shift ;;
106
         -d|--debug)     PRETTY_DEBUG=true;          shift ;;
105
         -a|--all)       SFDOC_SHOW_HIDDEN=true;     shift ;;
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
         -I|--include)   SHELLFU_PATH="$2:$SHELLFU_PATH"; shift 2 || usage -w "no PTH?" ;;
109
         -I|--include)   SHELLFU_PATH="$2:$SHELLFU_PATH"; shift 2 || usage -w "no PTH?" ;;
107
         -s|--src)       action=src;                 shift; break ;;
110
         -s|--src)       action=src;                 shift; break ;;
108
         -l|--ls)        action=lsx;                 shift; break ;;
111
         -l|--ls)        action=lsx;                 shift; break ;;