What do you see as an issue?
The --state CLI flag on airflow dags list-jobs does not tell the user what arguments it can take.
|
ARG_STATE = Arg(("--state",), help="Only list the dag runs corresponding to the state") |
It probably needs some keyword args similar to the following:
metavar="(table, json, yaml, plain)",
choices=("table", "json", "yaml", "plain"),
Solving the problem
The problem can be solved by adding those keyword arguments so that the user gets a suggestion for what state arguments can be passed in.
Anything else
Any suggestions on what can be a valid state would be much appreciated. Otherwise, I'll find some time to read through the code and/or docs and figure it out.
Are you willing to submit PR?
Code of Conduct
What do you see as an issue?
The
--stateCLI flag onairflow dags list-jobsdoes not tell the user what arguments it can take.airflow/airflow/cli/cli_config.py
Line 280 in 1bd538b
It probably needs some keyword args similar to the following:
Solving the problem
The problem can be solved by adding those keyword arguments so that the user gets a suggestion for what state arguments can be passed in.
Anything else
Any suggestions on what can be a valid state would be much appreciated. Otherwise, I'll find some time to read through the code and/or docs and figure it out.
Are you willing to submit PR?
Code of Conduct