Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 933739b

Browse files
Notice user to use ":" in config key.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent cfaa0d9 commit 933739b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎lib/commands/config.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ cmd.handler = function(argv) {
6565
if (argv.key.length === 0)
6666
return log.info(prettyConfig(loadConfig(argv.all)));
6767

68+
// sugar: notice user that use ':' instead of '.'
69+
if (argv.key.includes('.') && !argv.key.includes(':'))
70+
return log.printf('Key should use colon(:) as the delimiter, do you mean %s?',
71+
chalk.yellow(argv.key.replace(/\./g, ':')));
72+
6873
const v = nconf.get(argv.key);
6974

7075
// delete

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /