mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 18:53:13 +08:00
Simplify getting known args
This commit is contained in:
parent
bcc31fb19b
commit
b4aed1da22
@ -16,8 +16,7 @@ parser.add_argument('--debug',
|
|||||||
default = False,
|
default = False,
|
||||||
help = "Turn on the debug mode by setting this option."
|
help = "Turn on the debug mode by setting this option."
|
||||||
)
|
)
|
||||||
known_args, unknown_args = parser.parse_known_args()
|
known_args = vars(parser.parse_known_args()[0])
|
||||||
known_args = vars(known_args)
|
|
||||||
|
|
||||||
if not known_args["debug"]:
|
if not known_args["debug"]:
|
||||||
def get_cura_dir_path():
|
def get_cura_dir_path():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user