mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +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)
|
||||
args.append(arg)
|
||||
else:
|
||||
if arg is not None and arg.flag.startswith("-"):
|
||||
# if it don't starts with -, but the previous did, fill the constant
|
||||
if arg is not None and arg.flag.startswith("-") and arg.constant is None:
|
||||
# if it don't starts with -, but the previous did, and the constant is not yet filled, fill the constant
|
||||
arg.constant = param
|
||||
else:
|
||||
# if it don't starts with -, nor the previous, its probably a mandatory argument
|
||||
|
||||
Reference in New Issue
Block a user