bare-script 3.7.4 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/include/args.bare +5 -2
- package/package.json +1 -1
package/lib/include/args.bare
CHANGED
|
@@ -185,8 +185,11 @@ endfunction
|
|
|
185
185
|
|
|
186
186
|
# $function: argsHelp
|
|
187
187
|
# $group: args.bare
|
|
188
|
-
# $doc:
|
|
188
|
+
# $doc: Generate the [arguments model's](includeModel.html#var.vName='ArgsArguments') help content
|
|
189
|
+
# $doc:
|
|
190
|
+
# $doc: **NOTE:** Calling this function requires `include <dataTable.bare>`
|
|
189
191
|
# $arg arguments: The [arguments model](includeModel.html#var.vName='ArgsArguments')
|
|
192
|
+
# $return: The array of help Markdown line strings
|
|
190
193
|
function argsHelp(arguments):
|
|
191
194
|
# Create the help data
|
|
192
195
|
helpData = []
|
|
@@ -225,7 +228,7 @@ function argsHelp(arguments):
|
|
|
225
228
|
if anyDescription:
|
|
226
229
|
arrayPush(helpFields, 'Description')
|
|
227
230
|
endif
|
|
228
|
-
|
|
231
|
+
return dataTableMarkdown(helpData, {'fields': helpFields})
|
|
229
232
|
endfunction
|
|
230
233
|
|
|
231
234
|
|