Fix pargs.php72

This commit is contained in:
VirtuBox
2019-08-04 16:40:34 +02:00
parent 65813a309f
commit ffb88b6a9b

View File

@@ -309,7 +309,9 @@ class WOSiteCreateController(CementBaseController):
nargs='?')), nargs='?')),
(['--html'], (['--html'],
dict(help="create html site", action='store_true')), dict(help="create html site", action='store_true')),
(['--php72', '--php'], (['--php'],
dict(help="create php 7.2 site", action='store_true')),
(['--php72'],
dict(help="create php 7.2 site", action='store_true')), dict(help="create php 7.2 site", action='store_true')),
(['--php73'], (['--php73'],
dict(help="create php 7.3 site", action='store_true')), dict(help="create php 7.3 site", action='store_true')),
@@ -367,6 +369,8 @@ class WOSiteCreateController(CementBaseController):
@expose(hide=True) @expose(hide=True)
def default(self): def default(self):
pargs = self.app.pargs pargs = self.app.pargs
if pargs.php72:
self.app.pargs.php = True
# self.app.render((data), 'default.mustache') # self.app.render((data), 'default.mustache')
# Check domain name validation # Check domain name validation
data = dict() data = dict()
@@ -800,7 +804,9 @@ class WOSiteUpdateController(CementBaseController):
action='store_true')), action='store_true')),
(['--html'], (['--html'],
dict(help="update to html site", action='store_true')), dict(help="update to html site", action='store_true')),
(['--php72', '--php'], (['--php72'],
dict(help="update to php site", action='store_true')),
(['--php'],
dict(help="update to php site", action='store_true')), dict(help="update to php site", action='store_true')),
(['--php73'], (['--php73'],
dict(help="update to php73 site", dict(help="update to php73 site",
@@ -849,6 +855,9 @@ class WOSiteUpdateController(CementBaseController):
def default(self): def default(self):
pargs = self.app.pargs pargs = self.app.pargs
if pargs.php72:
self.app.pargs.php = True
if pargs.all: if pargs.all:
if pargs.site_name: if pargs.site_name:
Log.error(self, "`--all` option cannot be used with site name" Log.error(self, "`--all` option cannot be used with site name"