mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
[supervision] Fix session save programs. (#2999)
Arguments like "-ac a b" was previously parsed as "-ac b".
This commit is contained in:
@@ -281,8 +281,8 @@ class SessionWidget(QWidget, Ui_Session):
|
|||||||
arg = Arg(param, None)
|
arg = Arg(param, None)
|
||||||
args.append(arg)
|
args.append(arg)
|
||||||
else:
|
else:
|
||||||
if arg is not None and arg.flag.startswith("-"):
|
if arg is not None and arg.flag.startswith("-") and arg.constant is None:
|
||||||
# if it don't starts with -, but the previous did, fill the constant
|
# if it don't starts with -, but the previous did, and the constant is not yet filled, fill the constant
|
||||||
arg.constant = param
|
arg.constant = param
|
||||||
else:
|
else:
|
||||||
# if it don't starts with -, nor the previous, its probably a mandatory argument
|
# if it don't starts with -, nor the previous, its probably a mandatory argument
|
||||||
|
|||||||
Reference in New Issue
Block a user