Return an exit code so we can use this function like do_tests().
Refactor the caller to handle this.
Reduce the size of main() by putting this code into its own function.
Signed-off-by: Simon Glass <sjg@chromium.org>
file=out)
for item in sorted(proper_not_found):
print(item, file=out)
+ return 0
def parse_args():
if args.test:
return do_tests()
-
if args.scan_source:
- do_scan_source(os.getcwd(), args.update)
- return 0
+ return do_scan_source(os.getcwd(), args.update)
if args.imply:
imply_flags = 0