From d5c58574eb30807632e1cf22aff288e61fa113e2 Mon Sep 17 00:00:00 2001 From: doapp-ryanp Date: Thu, 24 Sep 2015 20:41:51 -0500 Subject: [PATCH] better cli help for env cmd --- bin/jaws | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bin/jaws b/bin/jaws index 2a7a5b3cc..da3683dd2 100755 --- a/bin/jaws +++ b/bin/jaws @@ -243,8 +243,20 @@ program program .command('env [key] [val]') - .description('Manage env vars for stage & region. Valid cmds: list,get,set,unset. can be "all". can be "local"') - .usage('get test us-east-1 USERNAME -or- set test all USERNAME blah') + .description('Manage env vars for stage & region. can be "all" can be "local"' + + '\n\nValid \'s:' + + '\n\nlist: vars for stage and region. jaws env list ' + + '\n\t Ex: jaws env list prod all' + + + '\n\nget: var value for stage and region. jaws env get ' + + '\n\t Ex: jaws env get prod all JAWS_STAGE' + + + '\n\nset: var value for stage and region. jaws set env ' + + '\n\t Ex: jaws env set prod us-east-1 TABLE_NAME users' + + + '\n\nunset: var value for stage and region. jaws env unset ' + + '\n\t Ex: jaws unset prod us-east-1 TABLE_NAME' + ) .action(function(cmd, stage, region, key, val) { var CmdEnv = require('../lib/commands/env');