mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Simplify getting known args
This commit is contained in:
parent
bcc31fb19b
commit
b4aed1da22
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue