@@ -1109,12 +1109,18 @@ def print_issue_overview(*insights):
1109
1109
github_token = False
1110
1110
1111
1111
if __name__ == "__main__" :
1112
+ startup_message = ["Running CircuitPython Library checks..." ,
1113
+ "Report Date: {}" .format (datetime .datetime .now ().strftime ("%d %B %Y, %I:%M%p" ))
1114
+ ]
1112
1115
cmd_line_args = cmd_line_parser .parse_args ()
1113
1116
error_depth = cmd_line_args .error_depth
1117
+ startup_message .append (" - Depth for listing libraries with errors: {}" .format (error_depth ))
1114
1118
verbosity = cmd_line_args .verbose
1115
1119
github_token = cmd_line_args .gh_token
1120
+ startup_message .append (" - Prompts for the GitHub Token are {}." .format (("enabled" if github_token else "disabled" )))
1116
1121
if cmd_line_args .output_file :
1117
1122
output_filename = cmd_line_args .output_file
1123
+ startup_message .append (" - Report output will be saved to: {}" .format (output_filename ))
1118
1124
if cmd_line_args .validator :
1119
1125
validators = []
1120
1126
for func in cmd_line_args .validator .split ("," ):
@@ -1127,7 +1133,11 @@ def print_issue_overview(*insights):
1127
1133
"Available validators are: {1}" .format (func .strip (),
1128
1134
", " .join ([vals for vals in sys .modules [__name__ ].__dict__ if vals .startswith ("validate" )])))
1129
1135
sys .exit ()
1136
+ startup_message .append (" - Only these selected validators will run: {}" .format (", " .join (name .__name__ for name in validators )))
1130
1137
try :
1138
+ for message in startup_message :
1139
+ output_handler (message )
1140
+ output_handler ()
1131
1141
run_library_checks ()
1132
1142
except :
1133
1143
if output_filename is not None :
0 commit comments