potiuk commented on code in PR #33149:
URL: https://github.com/apache/airflow/pull/33149#discussion_r1285187450


##########
dev/breeze/src/airflow_breeze/commands/release_management_commands.py:
##########
@@ -821,38 +821,52 @@ def publish_docs(
     "-a",
     "--airflow-site-directory",
     envvar="AIRFLOW_SITE_DIRECTORY",
+    type=click.Path(exists=True, file_okay=False, dir_okay=True, 
resolve_path=True),
     help="Local directory path of cloned airflow-site repo.",
     required=True,
 )
 @click.option(
     "-g",
     "--gen-type",
-    help="Type of back references to generate, supports: [airflow | providers 
| helm]",
-    type=str,
-    required=True,
+    show_default=True,
+    help="Type of back references to generate. Forced to providers if 
providers specified as arguments.",
+    type=BetterChoice(
+        [e.name for e in GenerationType],

Review Comment:
   list of names for enums. This way you can get auto-complete and validation 
done for that parameter.



-- 
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