浏览代码

Add missing global variable definition SATURNIN_SUBCOMMAND

Mostly for purpose of documentation.
Alois Mahdal 7 年前
父节点
当前提交
c2da3af4e2
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      src/saturnin.sh.skel

+ 8
- 0
src/saturnin.sh.skel 查看文件

@@ -146,6 +146,14 @@ SATURNIN_LIBEXEC_PREFIX="${SATURNIN_LIBEXEC_PREFIX:-}"
146 146
 #
147 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 157
 saturnin__bug() {
150 158
     #
151 159
     # Warn about bug in your software