Browse Source

Add missing global variable definition SATURNIN_SUBCOMMAND

Mostly for purpose of documentation.
Alois Mahdal 7 years ago
parent
commit
c2da3af4e2
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/saturnin.sh.skel

+ 8
- 0
src/saturnin.sh.skel View File

146
 #
146
 #
147
 SATURNIN_META_HELP="${SATURNIN_META_HELP:-}"
147
 SATURNIN_META_HELP="${SATURNIN_META_HELP:-}"
148
 
148
 
149
+#
150
+# Current running subcommand
151
+#
152
+# The value is set and exported into sub-command binary at moment of
153
+# saturnin__main() call.Z
154
+#
155
+SATURNIN_SUBCOMMAND="${SATURNIN_SUBCOMMAND:-}"
156
+
149
 saturnin__bug() {
157
 saturnin__bug() {
150
     #
158
     #
151
     # Warn about bug in your software
159
     # Warn about bug in your software