separate cleaning options from parsing them so the online generator can clean its faked options
This commit is contained in:
parent
7f1032bcd0
commit
a092fca9e6
@ -415,8 +415,10 @@ def parse_opts(cmdline_args=None):
|
|||||||
dest="write_json",
|
dest="write_json",
|
||||||
help="Write json version of card definitions and extras.")
|
help="Write json version of card definitions and extras.")
|
||||||
|
|
||||||
options = parser.parse_args(args=cmdline_args)
|
return parser.parse_args(args=cmdline_args)
|
||||||
|
|
||||||
|
|
||||||
|
def clean_opts(options):
|
||||||
if options.sleeved_thick:
|
if options.sleeved_thick:
|
||||||
options.thickness = 3.2
|
options.thickness = 3.2
|
||||||
options.sleeved = True
|
options.sleeved = True
|
||||||
@ -1122,4 +1124,5 @@ def generate(options):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
options = parse_opts()
|
options = parse_opts()
|
||||||
|
options = clean_opts(options)
|
||||||
return generate(options)
|
return generate(options)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user