diff --git a/bin/now-alias b/bin/now-alias index d8bdef3..da4149b 100755 --- a/bin/now-alias +++ b/bin/now-alias @@ -115,7 +115,7 @@ async function run (token) { case 'list': case 'ls': if (0 !== args.length) { - error('Invalid number of arguments'); + error(`Invalid number of arguments. Usage: ${chalk.cyan('`now alias ls`')}`); return exit(1); } @@ -161,7 +161,7 @@ async function run (token) { } if (1 !== args.length) { - error('Invalid number of arguments'); + error(`Invalid number of arguments. Usage: ${chalk.cyan('`now alias rm `')}`); return exit(1); } @@ -195,7 +195,7 @@ async function run (token) { case 'add': case 'set': if (2 !== args.length) { - error('Invalid number of arguments'); + error(`Invalid number of arguments. Usage: ${chalk.cyan('`now alias set `')}`); return exit(1); } await alias.set(String(args[0]), String(args[1]));