diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-10-11 20:56:01 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-10-11 20:56:01 +0200 |
commit | 91416fb9a66519b0d0b51f97a5e2999548b2a2cb (patch) | |
tree | 60b65e60063489151f62fe3f144567fea4e8e15b /rhodecode/config | |
parent | e9be8379b486337690fe02f064b9472f415f8035 (diff) |
Implemented proposed changes from pull request #77
--HG--
branch : beta
Diffstat (limited to 'rhodecode/config')
-rw-r--r-- | rhodecode/config/setup_rhodecode.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/rhodecode/config/setup_rhodecode.py b/rhodecode/config/setup_rhodecode.py index b8462587..93f66a0a 100644 --- a/rhodecode/config/setup_rhodecode.py +++ b/rhodecode/config/setup_rhodecode.py @@ -50,6 +50,16 @@ class SetupCommand(AbstractInstallCommand): dest='section_name', default=None, help='The name of the section to set up (default: app:main)') + parser.add_option('--force-yes', + action='store_true', + dest='force_ask', + default=None, + help='Force yes to every question') + parser.add_option('--force-no', + action='store_false', + dest='force_ask', + default=None, + help='Force no to every question') def command(self): config_spec = self.args[0] @@ -61,7 +71,7 @@ class SetupCommand(AbstractInstallCommand): section = 'main' if not ':' in section: plain_section = section - section = 'app:'+section + section = 'app:' + section else: plain_section = section.split(':', 1)[0] if not config_spec.startswith('config:'): |