MCPcopy
hub / github.com/apache/airflow / error

Method error

airflow/cli/cli_parser.py:79–82  ·  view source on GitHub ↗

Override error and use print_instead of print_usage

(self, message)

Source from the content-addressed store, hash-verified

77 super()._check_value(action, value)
78
79 def error(self, message):
80 """Override error and use print_instead of print_usage"""
81 self.print_help()
82 self.exit(2, f'\n{self.prog} command error: {message}, see help above.\n')
83
84
85# Used in Arg to enable `None' as a distinct value from "not passed"

Callers 15

configure_loggingFunction · 0.45
getimportMethod · 0.45
validate_sessionFunction · 0.45
wrapperFunction · 0.45
__getattr__Method · 0.45
trigger_dagFunction · 0.45
delete_dagFunction · 0.45
task_instance_infoFunction · 0.45
dag_run_statusFunction · 0.45
get_poolFunction · 0.45
get_poolsFunction · 0.45

Calls

no outgoing calls

Tested by 6

setUpMethod · 0.36
__create_instanceMethod · 0.36
__write_to_fileMethod · 0.36
setUpMethod · 0.36
test_with_dag_runMethod · 0.36