From c93fbc64896acc6e2d804a55c9c660600b38c4de Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Mon, 30 May 2016 14:04:36 +0300 Subject: [PATCH] Fix default usage of `alias set` --- bin/now-alias | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/now-alias b/bin/now-alias index c01e1c3..ce1ac30 100755 --- a/bin/now-alias +++ b/bin/now-alias @@ -148,9 +148,9 @@ async function run (token) { break; default: - if (2 === args.length) { - await alias.set(String(args[0]), String(args[1])); - } else if (args.length >= 3) { + if (2 === argv._.length) { + await alias.set(String(argv._[0]), String(argv._[1])); + } else if (argv._.length >= 3) { error('Invalid number of arguments'); help(); exit(1);