We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfaa0d9 commit 933739bCopy full SHA for 933739b
lib/commands/config.js
@@ -65,6 +65,11 @@ cmd.handler = function(argv) {
65
if (argv.key.length === 0)
66
return log.info(prettyConfig(loadConfig(argv.all)));
67
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
+
73
const v = nconf.get(argv.key);
74
75
// delete
0 commit comments