You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "loulsb (via GitHub)" <gi...@apache.org> on 2023/02/01 21:30:42 UTC

[GitHub] [airflow] loulsb commented on a diff in pull request #29116: Add colors in help outputs of Airfow CLI commands #28789

loulsb commented on code in PR #29116:
URL: https://github.com/apache/airflow/pull/29116#discussion_r1093750399


##########
airflow/cli/cli_parser.py:
##########
@@ -2201,46 +2202,56 @@ def _remove_dag_id_opt(command: ActionCommand):
 DAG_CLI_DICT: dict[str, CLICommand] = {sp.name: sp for sp in dag_cli_commands}
 
 
-class AirflowHelpFormatter(argparse.HelpFormatter):
+class AirflowHelpFormatter(RichHelpFormatter):
     """
     Custom help formatter to display help message.
 
     It displays simple commands and groups of commands in separate sections.
     """
 
-    def _format_action(self, action: Action):
+    def _rich_format_action(self, action: Action):

Review Comment:
   Thank you @hamdanal. I'll try your solution



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org