bugraoz93 commented on code in PR #60193:
URL: https://github.com/apache/airflow/pull/60193#discussion_r2673813219


##########
airflow-ctl/src/airflowctl/ctl/cli_config.py:
##########
@@ -500,10 +500,22 @@ def _create_arg(
         arg_flags: tuple,
         arg_type: type | Callable,
         arg_help: str,
-        arg_action: argparse.BooleanOptionalAction | None,
+        arg_action: type[argparse.BooleanOptionalAction] | None,
         arg_dest: str | None = None,
         arg_default: Any | None = None,
     ) -> Arg:
+        if not any(flag.startswith("-") for flag in arg_flags):

Review Comment:
   I think the two arg definition is not needed here. Both can be created with 
the same Arg only difference will be dest and flags and that should be managed 
by the caller as I mentioned in my older comment.



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