Fix pargs.php72
This commit is contained in:
@@ -309,7 +309,9 @@ class WOSiteCreateController(CementBaseController):
|
||||
nargs='?')),
|
||||
(['--html'],
|
||||
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')),
|
||||
(['--php73'],
|
||||
dict(help="create php 7.3 site", action='store_true')),
|
||||
@@ -367,6 +369,8 @@ class WOSiteCreateController(CementBaseController):
|
||||
@expose(hide=True)
|
||||
def default(self):
|
||||
pargs = self.app.pargs
|
||||
if pargs.php72:
|
||||
self.app.pargs.php = True
|
||||
# self.app.render((data), 'default.mustache')
|
||||
# Check domain name validation
|
||||
data = dict()
|
||||
@@ -800,7 +804,9 @@ class WOSiteUpdateController(CementBaseController):
|
||||
action='store_true')),
|
||||
(['--html'],
|
||||
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')),
|
||||
(['--php73'],
|
||||
dict(help="update to php73 site",
|
||||
@@ -849,6 +855,9 @@ class WOSiteUpdateController(CementBaseController):
|
||||
def default(self):
|
||||
pargs = self.app.pargs
|
||||
|
||||
if pargs.php72:
|
||||
self.app.pargs.php = True
|
||||
|
||||
if pargs.all:
|
||||
if pargs.site_name:
|
||||
Log.error(self, "`--all` option cannot be used with site name"
|
||||
|
||||
Reference in New Issue
Block a user