question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli: add "--config" option support

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
lc-softcommented, Jan 29, 2018

@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.

0reactions
marioneblcommented, Feb 3, 2018

Released via 6.1.0, thanks @lc-soft!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found