Parse command line arguments using minimist and store the parsed object into app.argv, and add app.showUsage() helper function
- Source:
- features/cmdLineOptions.js
Members
-
<static> type :string
-
This feature is loaded at configuration stage
Type:
- string
- Source:
- features/cmdLineOptions.js
Methods
-
<static> load_(app, usageOptions)
-
Load the feature
Parameters:
Name Type Description appCliApp The cli app module object
usageOptionsobject Options for the feature
- Source:
- features/cmdLineOptions.js
Properties:
Name Type Argument Description usageOptions.bannerstring <optional>
Banner message or banner generator function
usageOptions.programstring <optional>
Executable name
usageOptions.argumentsarray <optional>
Command line arguments, identified by the position of appearance
usageOptions.optionsobject <optional>
Command line options
Returns:
- Type
- Promise.<*>