fix argument error globally for action

This commit is contained in:
Cyrille L 2023-04-10 12:26:19 +02:00
parent dd78be3335
commit 2bc3abb7ee
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)