From 3ef9f836defd07d9eaec73e148c97bf46818da54 Mon Sep 17 00:00:00 2001 From: Cory Caywood Date: Fri, 24 Mar 2017 17:31:35 +0900 Subject: [PATCH] Add allowUnknownOption to commander --- bin/docpub.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/docpub.js b/bin/docpub.js index da9880e..06d55ed 100755 --- a/bin/docpub.js +++ b/bin/docpub.js @@ -16,7 +16,8 @@ program .version(pkg.version) .option('-p, --path ', 'path to documents directory (defaults to process directory)') .option('--config-path ', 'path for the config') - .option('-v, --verbose', 'verbose output'); + .option('-v, --verbose', 'verbose output') + .allowUnknownOption(); program.on('--help', () => { console.log(' Overriding config');