fix argument error globally for action
This commit is contained in:
parent
dd78be3335
commit
2bc3abb7ee
|
@ -34,7 +34,7 @@
|
||||||
#**********************************************************************
|
#**********************************************************************
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
import infos, logs
|
import infos
|
||||||
|
|
||||||
|
|
||||||
# Arguments from command line
|
# Arguments from command line
|
||||||
|
@ -113,8 +113,9 @@ if noaction:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# Unused argument [action]
|
# Unused argument [action]
|
||||||
|
act_err = False
|
||||||
if not action in actions:
|
if not action in actions:
|
||||||
logs.out("11", action, True)
|
act_err = True
|
||||||
|
|
||||||
|
|
||||||
# target
|
# target
|
||||||
|
|
|
@ -38,6 +38,7 @@ import args, dom, logs, tyto, form
|
||||||
def domain():
|
def domain():
|
||||||
if dom.hole: logs.out("13", '', True)
|
if dom.hole: logs.out("13", '', True)
|
||||||
elif args.action == 'new': return
|
elif args.action == 'new': return
|
||||||
|
elif args.act_err: logs.out("11", args.action, True)
|
||||||
elif not dom.exists: logs.out("10", '', True)
|
elif not dom.exists: logs.out("10", '', True)
|
||||||
elif dom.corrupt: logs.out("39", dom.shortname, True)
|
elif dom.corrupt: logs.out("39", dom.shortname, True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue