diff --git a/ldm/invoke/args.py b/ldm/invoke/args.py index c9c7ffe3b0..ace0786154 100644 --- a/ldm/invoke/args.py +++ b/ldm/invoke/args.py @@ -230,7 +230,8 @@ class Args(object): switches = '' try: self._cmd_switches = self._cmd_parser.parse_args(shlex.split(switches,comments=True)) - setattr(self._cmd_switches,'prompt',prompt) + if not getattr(self._cmd_switches,'prompt'): + setattr(self._cmd_switches,'prompt',prompt) return self._cmd_switches except: return None