@@ -659,7 +659,7 @@ var argv = require('yargs').usage('simplify-cli command [options]')
659659 . string ( 'stack' ) . describe ( 'stack' , getOptionDesc ( 'deploy' , 'stack' ) )
660660 . string ( 'function' ) . describe ( 'function' , getOptionDesc ( 'deploy' , 'function' ) )
661661 . string ( 'location' ) . describe ( 'location' , getOptionDesc ( 'deploy' , 'location' ) ) . default ( 'location' , '' )
662- . string ( 'parameters' ) . describe ( 'parameters' , getOptionDesc ( 'deploy' , 'parameters' ) ) . default ( 'parameters' , 'parameters.json' )
662+ . string ( 'parameters' ) . describe ( 'parameters' , getOptionDesc ( 'deploy' , 'parameters' ) )
663663 . string ( 'config' ) . describe ( 'config' , 'function configuration' ) . default ( 'config' , 'config.json' )
664664 . string ( 'policy' ) . describe ( 'policy' , 'function policy to attach' ) . default ( 'policy' , 'policy.json' )
665665 . string ( 'role' ) . describe ( 'role' , 'function policy to attach' ) . default ( 'role' , 'role.json' )
@@ -680,6 +680,7 @@ var cmdType = cmdArg ? fs.existsSync(path.resolve(argv.location, cmdArg, "templa
680680cmdType = argv [ 'function' ] ? "Function" : argv [ 'stack' ] ? "CF-Stack" : cmdType
681681
682682const envFilePath = path . resolve ( argv [ 'dotenv' ] || `.${ argv . env ? argv . env + '.' : '' } env` )
683+ argv . parameters = argv . parameters ? argv . parameters : `parameters.${ argv . env ? argv . env + '.' : '' } json`
683684
684685console . log ( `ENV: ${ envFilePath } ` )
685686
0 commit comments