summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtemstoolkit/mailer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtemstoolkit/mailer.py b/rtemstoolkit/mailer.py
index 32cbc23..968432a 100644
--- a/rtemstoolkit/mailer.py
+++ b/rtemstoolkit/mailer.py
@@ -86,7 +86,10 @@ class mail:
if self._args_are_macros():
value = self.opts.find_arg(arg)
if value is not None:
- value = self.opts.find_arg(arg)[1]
+ if len(value) > 1:
+ value = self.opts.find_arg(arg)[1]
+ else:
+ value = True
else:
if arg.startswith('--'):
arg = arg[2:]