Commits

Pior Bastida committed 8c7dc77

move --config --settings to global config

  • Participants
  • Parent commits 651b7f5

Comments (0)

Files changed (1)

 
 
 @arg('stack_name', help=HELP_SN)
-@arg('--config', default=None, help=HELP_CFG)
-@arg('--settings', default=None, help=HELP_SETTINGS)
 @arg('--template', help=HELP_TMPL)
 def create(args):
     config, settings, sinfo = initialize_from_cli(args)
 
 
 @arg('stack_name', help=HELP_SN)
-@arg('--config', default=None, help=HELP_CFG)
-@arg('--settings', default=None, help=HELP_SETTINGS)
 @arg('--template', help=HELP_TMPL)
 def update(args):
     config, settings, sinfo = initialize_from_cli(args)
 
 
 @arg('stack_name', help=HELP_SN)
-@arg('--config', default=None, help=HELP_CFG)
-@arg('--settings', default=None, help=HELP_SETTINGS)
 def delete(args):
     config, settings, sinfo = initialize_from_cli(args)
 
 
 def main():
     parser = ArghParser(version=pkg_resources.get_distribution("awstools").version)
+    parser.add_argument('--config', default=None, help=HELP_CFG)
+    parser.add_argument('--settings', default=None, help=HELP_SETTINGS)
     parser.add_commands([
                         ls,
                         create,