Skip to content

Commit

Permalink
v0.1.5 fix(source/main.js): Slightly improved coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anadian committed May 3, 2020
1 parent 8606684 commit bb10ec9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
- 2020-04-28 v0.1.2 docs(README.md): Added more badges. fix(dependencies): Removed unused `ava` package from package.json.
- 2020-04-28 v0.1.3 docs(API.md): Added URL for life-cycle state keywords standard.
- 2020-05-01 v0.1.4 docs(API.md): Formatting fixes.
- 2020-05-02 v0.1.5 fix(source/main.js): Slightly improved coverage.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extract-documentation-comments",
"version": "0.1.4",
"version": "0.1.5",
"description": "Simply extract documentation comments from a source file.",
"main": "source/main.js",
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions source/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,21 +528,21 @@ if(require.main === module){
const EnvironmentPaths = EnvPaths( PROCESS_NAME );
const OptionDefinitions = [
//UI
{ name: 'help', alias: 'h', type: Boolean, description: 'Writes this help text to stdout.' },
{ name: 'help', alias: 'h', type: Boolean, description: 'Writes this help text to STDOUT.' },
{ name: 'noop', alias: 'n', type: Boolean, description: '[Reserved] Show what would be done without actually doing it.' },
{ name: 'verbose', alias: 'v', type: Boolean, description: 'Verbose output to stderr.' },
{ name: 'version', alias: 'V', type: Boolean, description: 'Writes version information to stdout.' },
{ name: 'verbose', alias: 'v', type: Boolean, description: 'Verbose output to STDERR.' },
{ name: 'version', alias: 'V', type: Boolean, description: 'Writes version information to STDOUT.' },
{ name: 'no-quick-exit', alias: 'x', type: Boolean, description: 'Don\'t immediately exit after printing help, version, and/or config information.' },
//Input
{ name: 'stdin', alias: 'i', type: Boolean, description: 'Read input from stdin.' },
{ name: 'stdin', alias: 'i', type: Boolean, description: 'Read input from STDIN.' },
{ name: 'input', alias: 'I', type: String, description: 'The path to the file to read input from.' },
{ name: 'test', alias: 't', type: Boolean, description: 'Run unit tests and exit.' },
//Output
{ name: 'stdout', alias: 'o', type: Boolean, description: 'Write output to stdout.' },
{ name: 'stdout', alias: 'o', type: Boolean, description: 'Write output to STDOUT.' },
{ name: 'output', alias: 'O', type: String, description: 'The name of the file to write output to.' },
{ name: 'pasteboard', alias: 'p', type: Boolean, description: '[Reserved] Copy output to pasteboard (clipboard).' },
//Config
{ name: 'config', alias: 'c', type: Boolean, description: '[Reserved] Print configuration values and information to stdout.' },
{ name: 'config', alias: 'c', type: Boolean, description: 'Print search paths and configuration values to STDOUT.' },
{ name: 'config-file', alias: 'C', type: String, description: '[Reserved] Use the given config file instead of the default.' },
];
//Variables
Expand All @@ -552,10 +552,9 @@ if(require.main === module){
var parent_dirname = '';
var package_path = '';
//Logger
/* istanbul ignore next */
try{
MakeDir.sync( EnvironmentPaths.log );
} catch(error){
} catch(error)/* istanbul ignore next */{
console.error('MakeDir.sync threw: %s', error);
}
function_return = ApplicationLogWinstonInterface.InitLogger('debug.log', EnvironmentPaths.log);
Expand Down Expand Up @@ -611,6 +610,7 @@ if(require.main === module){
}
/* istanbul ignore next */
if( Options.config === true ){
console.log('Paths: ', EnvironmentPaths);
quick_exit = true;
}
if( quick_exit === false || Options['no-quick-exit'] === true ){
Expand Down

0 comments on commit bb10ec9

Please sign in to comment.