diff --git a/examples/custom-help b/examples/custom-help index e06e97d17..b4719ef50 100755 --- a/examples/custom-help +++ b/examples/custom-help @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/custom-help-description b/examples/custom-help-description index 9892a912a..c55ff28d6 100644 --- a/examples/custom-help-description +++ b/examples/custom-help-description @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .helpOption('-c, --HELP', 'custom help message') diff --git a/examples/custom-version b/examples/custom-version index 11043a06f..0ed7c0234 100644 --- a/examples/custom-version +++ b/examples/custom-version @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1', '-v, --VERSION', 'new version message') diff --git a/examples/defaults b/examples/defaults index 308fe9b21..798f5f9c0 100755 --- a/examples/defaults +++ b/examples/defaults @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo function list(val) { return val.split(',').map(Number); diff --git a/examples/deploy b/examples/deploy index 8f2bd3b33..d0821f86a 100755 --- a/examples/deploy +++ b/examples/deploy @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/description b/examples/description index d280a2910..0e0c84aad 100755 --- a/examples/description +++ b/examples/description @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/env b/examples/env index 91898037c..a68b1530e 100755 --- a/examples/env +++ b/examples/env @@ -1,6 +1,7 @@ #!/usr/bin/env node -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo let cmdValue; let envValue; diff --git a/examples/express b/examples/express index 14a81b385..bcd0c6a6c 100755 --- a/examples/express +++ b/examples/express @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/help b/examples/help index afd8d97d2..97296e055 100755 --- a/examples/help +++ b/examples/help @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/options-common.js b/examples/options-common.js index 0a5d2bd26..74c8b7750 100755 --- a/examples/options-common.js +++ b/examples/options-common.js @@ -20,7 +20,8 @@ // pizza details: // - cheese -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/options-custom-processing.js b/examples/options-custom-processing.js index 74c6323da..e9d44fa28 100644 --- a/examples/options-custom-processing.js +++ b/examples/options-custom-processing.js @@ -17,7 +17,8 @@ // $ custom --list x,y,z // [ 'x', 'y', 'z' ] -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); function myParseInt(value, dummyPrevious) { diff --git a/examples/options-defaults.js b/examples/options-defaults.js index 2228fbfd0..1f0929fb9 100644 --- a/examples/options-defaults.js +++ b/examples/options-defaults.js @@ -11,7 +11,8 @@ // $ pizza-options --cheese stilton // cheese: stilton -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/options-flag-or-value.js b/examples/options-flag-or-value.js index d5cd468cf..b895569a0 100644 --- a/examples/options-flag-or-value.js +++ b/examples/options-flag-or-value.js @@ -13,7 +13,8 @@ // $ pizza-options --cheese mozzarella // add cheese type mozzarella -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/options-negatable.js b/examples/options-negatable.js index a2be59c85..401838f43 100644 --- a/examples/options-negatable.js +++ b/examples/options-negatable.js @@ -15,7 +15,8 @@ // $ pizza-options --no-sauce --no-cheese // You ordered a pizza with no sauce and no cheese -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/options-required.js b/examples/options-required.js index 9963ad6ab..9feaef395 100644 --- a/examples/options-required.js +++ b/examples/options-required.js @@ -10,7 +10,8 @@ // $ pizza // error: required option '-c, --cheese ' not specified -const commander = require('..'); // For running direct from git clone of commander repo +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/pizza b/examples/pizza index 269c0cd4a..db63f146b 100755 --- a/examples/pizza +++ b/examples/pizza @@ -1,10 +1,7 @@ #!/usr/bin/env node -/** - * Module dependencies. - */ - -var program = require('../'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/pm b/examples/pm index 2d0506441..082afbb07 100755 --- a/examples/pm +++ b/examples/pm @@ -1,6 +1,7 @@ #!/usr/bin/env node -var program = require('..'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .version('0.0.1') diff --git a/examples/pm-install b/examples/pm-install index 52cc5a932..c27eb3e49 100755 --- a/examples/pm-install +++ b/examples/pm-install @@ -1,6 +1,7 @@ #!/usr/bin/env node -var program = require('..'); +// const program = require('commander'); // (normal include) +const program = require('../'); // include commander in git clone of commander repo program .option('-f, --force', 'force installation') diff --git a/examples/storeOptionsAsProperties-action.js b/examples/storeOptionsAsProperties-action.js index 0e01122e5..af3db8a69 100644 --- a/examples/storeOptionsAsProperties-action.js +++ b/examples/storeOptionsAsProperties-action.js @@ -16,7 +16,8 @@ // jump // foo -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/storeOptionsAsProperties-opts.js b/examples/storeOptionsAsProperties-opts.js index f86c0dcc0..56185f36e 100644 --- a/examples/storeOptionsAsProperties-opts.js +++ b/examples/storeOptionsAsProperties-opts.js @@ -14,7 +14,8 @@ // jump // foo -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program diff --git a/examples/storeOptionsAsProperties-problem.js b/examples/storeOptionsAsProperties-problem.js index 01110d0cc..62bcf45d5 100644 --- a/examples/storeOptionsAsProperties-problem.js +++ b/examples/storeOptionsAsProperties-problem.js @@ -16,7 +16,8 @@ // jump // foo -const commander = require('../'); +// const commander = require('commander'); // (normal include) +const commander = require('../'); // include commander in git clone of commander repo const program = new commander.Command(); program