ephraimbuddy commented on code in PR #29058:
URL: https://github.com/apache/airflow/pull/29058#discussion_r1090342753


##########
airflow/cli/commands/db_command.py:
##########
@@ -207,3 +207,14 @@ def cleanup_tables(args):
         confirm=not args.yes,
         skip_archive=args.skip_archive,
     )
+
+
+@cli_utils.action_cli(check_db=False)
+def export_archived(args):
+    """Exports archived records from metadata database."""
+    if not os.path.exists(args.output_path):
+        raise AirflowException(f"The specified --output-path 
{args.output_path} does not exist.")

Review Comment:
   moved the check to parser



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