From cb4057eabc17a4dd099300b111352321c8d9e76c Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 3 Nov 2019 14:19:36 +0100 Subject: [PATCH] [fix] Return nothing if argument is already set. --- moulinette/actionsmap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moulinette/actionsmap.py b/moulinette/actionsmap.py index fd88ec72..9d41eb59 100644 --- a/moulinette/actionsmap.py +++ b/moulinette/actionsmap.py @@ -89,6 +89,9 @@ class CommentParameter(_ExtraParameter): skipped_iface = ['api'] def __call__(self, message, arg_name, arg_value): + if arg_value: + return + return msignals.display(m18n.n(message)) @classmethod