-found_paths = []
-
-# Build a list of found paths, in case there are / we want more than
-# one.
-for filename in args:
- # If --single was passed, we relay it to the find_file_paths
- # function so that it completes sooner (it doesn't have to keep
- # looking after the first match).
- found_paths += FileUtils.find_file_paths(options.root,
- filename,
- options.single)
-
- if options.single and (len(found_paths) > 0):
- # If we found anything and we only want the first match, just
- # print it and quit.
- print found_paths[0]
- raise SystemExit(ExitCodes.EXIT_SUCCESS)
-
-
-# If we weren't passed --single, spit out all matches.