jgarte opened a new issue, #31303:
URL: https://github.com/apache/airflow/issues/31303

   ### 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.
   
   
https://github.com/apache/airflow/blob/1bd538be8c5b134643a6c5eddd06f70e6f0db2e7/airflow/cli/cli_config.py#L280
   
   It probably needs some keyword args similar to the following:
   
   ```python
    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
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to