mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -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,
|
||||
help = "Turn on the debug mode by setting this option."
|
||||
)
|
||||
known_args, unknown_args = parser.parse_known_args()
|
||||
known_args = vars(known_args)
|
||||
known_args = vars(parser.parse_known_args()[0])
|
||||
|
||||
if not known_args["debug"]:
|
||||
def get_cura_dir_path():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue