cli: add "--config" option support
See original GitHub issueI want move commitlint.config.js to config directory, but I cannot found option like commitlint --config myapp/config/commitlint.config.js
.
Expected Behavior
$ commitlint --config myapp/config/commitlint.config.js
Current Behavior
$ commitlint --config myapp/config/commitlint.config.js
/home/xxx/myapp/node_modules/@commitlint/cli/lib/cli.js:50
throw new Error(`unknown flags: ${arg}`);
^
Error: unknown flags: --config
at Object.unknown [as unknownFn] (/home/xxx/myapp/node_modules/@commitlint/cli/lib/cli.js:50:9)
at setArg (/home/xxx/myapp/node_modules/meow/node_modules/minimist/index.js:56:23)
at module.exports (/home/xxx/myapp/node_modules/meow/node_modules/minimist/index.js:120:17)
at module.exports (/home/xxx/myapp/node_modules/meow/index.js:44:13)
at Object.<anonymous> (/home/xxx/myapp/node_modules/@commitlint/cli/lib/cli.js:54:11)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
Affected packages
- cli
- core
- prompt
- config-angular
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Documentation - tsc CLI Options - TypeScript
Flag Type Default
‑‑allowJs boolean false
‑‑allowUmdGlobalAccess boolean false
‑‑allowUnreachableCode boolean
Read more >Configuring the CLI - Oracle Help Center
Configuring the CLI · Specify a default profile. · Set default values for command options so you don't have to type them into...
Read more >Add alias -c | --config for tsc command line tool #35315 - GitHub
Specify a tsconfig.json for use with tsc on the command line #5858 · --p command line option should support taking a full path...
Read more >Command line options - AWS Documentation
AWS CLI supported global command line options. In the AWS CLI you can use the following command line options to override the default...
Read more >config command (NuGet CLI) - Microsoft Learn
In this article. Usage; Options. Applies to: all • Supported versions: all. Gets or sets NuGet configuration values.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marionebl OK, I will take some time to review the information you provided and try to solve this issue, but it may take a few days.
Released via
6.1.0
, thanks @lc-soft!