-
Notifications
You must be signed in to change notification settings - Fork 95
CylcOptionParser(..., auto_add=True) is broken #7251
Copy link
Copy link
Open
Labels
Description
Description
CylcOptionParser's auto_add= keyword argument is broken. CLI scripts using it will fail.
Reproducible Example
Add the following diff (any script will do, I've just happened to have picked Cat-Log)
--- a/cylc/flow/scripts/cat_log.py
+++ b/cylc/flow/scripts/cat_log.py
@@ -318,7 +318,8 @@ def get_option_parser() -> COP:
__doc__,
argdoc=[
ID_MULTI_ARG_DOC,
- ]
+ ],
+ auto_add=False,
)
parser.add_option(
Then try using the script
> cylc log myworkflow
...
Assorted tracebackReactions are currently unavailable