node.js command-line interfaces made easy
20 matches across 2 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/command.parseOptions.test.js | 221 | // from its option-argument and that option-arguments not be optional, but there are some exceptions in POSIX.1-2017 to |
| LOW | examples/argument.js | 21 | // node argument.js --help |
| LOW | examples/pass-through-options.js | 21 | // node pass-through-options.js --dry-run git checkout -b new-branch |
| LOW | examples/options-common.js | 21 | |
| LOW | examples/arguments-custom-processing.js | 41 | // Try the following: |
| LOW | examples/custom-command-class.js | 41 | // Try the following: |
| LOW | examples/options-conflicts.js | 81 | // node options-conflicts.js source --interactive |
| LOW | examples/positional-options.js | 21 | // node positional-options.js -p upload test.js |
| LOW | examples/thank.js | 21 | |
| LOW | examples/options-negatable.js | 21 | console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); |
| LOW | examples/options-env.js | 21 | |
| LOW | examples/global-options-added.js | 1 | #!/usr/bin/env node |
| LOW | examples/configure-output.js | 21 | // Try the following: |
| LOW | examples/options-extra.js | 41 | |
| LOW | examples/options-boolean-or-value.js | 21 | // node options-boolean-or-value --cheese |
| LOW | .github/workflows/codeql-analysis.yml | 41 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| LOW | lib/command.js | 2761 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/options.bool.combo.test.js | 52 | function createPepperProgramWithDefault(defaultValue) { |
| LOW | tests/options.bool.combo.test.js | 125 | function createPepperProgramWithDefaultAndPreset() { |
| LOW | lib/command.js | 2719 | function incrementNodeInspectorPort(args) { |