From 4ec6e8ec9d96e97cfce89ee5305ccda3c99a73ee Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 27 May 2016 17:27:34 -0700 Subject: [PATCH] now-alias: refer to `_` to get custom args --- bin/now-alias | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/now-alias b/bin/now-alias index 1f6be34..0c64fe0 100755 --- a/bin/now-alias +++ b/bin/now-alias @@ -93,23 +93,23 @@ async function run (token) { switch (subcommand) { case 'list': case 'ls': - await alias.ls(argv[0]); + await alias.ls(argv._[0]); break; case 'remove': case 'rm': - await alias.rm(argv[0]); + await alias.rm(argv._[0]); break; case 'add': case 'set': - await alias.set(argv[0], argv[1]); + await alias.set(argv._[0], argv._[1]); break; default: if (2 === argv._.length) { - console.log(chalk.dim(`> Running \`now alias set ${argv[0]} ${argv[1]}\``)); - await alias.set(url, alias); + console.log(chalk.dim(`> Running \`now alias set ${argv._[0]} ${argv._[1]}\``)); + await alias.set(argv._[0], argv._[1]); } else if (argv._.length >= 3) { error('Invalid number of arguments'); help();