From 09e034cbb2782d634f5a1c4c5333c93ca004109e Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 3 Mar 2016 16:17:31 -0800 Subject: [PATCH] now: require a path (eg: `now .`) --- bin/now | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/now b/bin/now index 1867cfa..c5ad786 100755 --- a/bin/now +++ b/bin/now @@ -12,6 +12,7 @@ import ms from 'ms'; import os from 'os'; program +.usage('[options] ') .option('-d, --debug', 'Debug mode [off]', false) .option('-f, --force', 'Force a new deployment even if nothing has changed', false) .option('-L, --login', 'Configure login') @@ -25,7 +26,9 @@ if (path) { path = resolve(process.cwd(), path); } } else { - path = process.cwd(); + error('Missing path. To deploy this directory, run `now .`'); + program.outputHelp(); + process.exit(1); } let config;