You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/11 16:53:03 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #14188: Make both --yes and --no_confirm work for task clear command

kaxil commented on a change in pull request #14188:
URL: https://github.com/apache/airflow/pull/14188#discussion_r574662940



##########
File path: airflow/bin/cli.py
##########
@@ -857,7 +857,8 @@ def clear(args):
                 task_regex=args.task_regex,
                 include_downstream=args.downstream,
                 include_upstream=args.upstream)
-
+    if args.yes:
+        args.no_confirm = args.yes

Review comment:
       Do we need a new argument for it?
   
   We can just update L868 to:
   
   ```diff
   - confirm_prompt=not args.no_confirm,
   + confirm_prompt=not args.yes
   ```
   




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

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