##// END OF EJS Templates
check-code: use "-" to specify a list of files from stdin...
Jun Wu -
r31824:48046444 default
parent child Browse files
Show More
@@ -673,7 +673,7 b' def checkfile(f, logfunc=_defaultlogger.'
673 return result
673 return result
674
674
675 def main():
675 def main():
676 parser = optparse.OptionParser("%prog [options] [files]")
676 parser = optparse.OptionParser("%prog [options] [files | -]")
677 parser.add_option("-w", "--warnings", action="store_true",
677 parser.add_option("-w", "--warnings", action="store_true",
678 help="include warning-level checks")
678 help="include warning-level checks")
679 parser.add_option("-p", "--per-file", type="int",
679 parser.add_option("-p", "--per-file", type="int",
@@ -691,6 +691,9 b' def main():'
691
691
692 if len(args) == 0:
692 if len(args) == 0:
693 check = glob.glob("*")
693 check = glob.glob("*")
694 elif args == ['-']:
695 # read file list from stdin
696 check = sys.stdin.read().splitlines()
694 else:
697 else:
695 check = args
698 check = args
696
699
General Comments 0
You need to be logged in to leave comments. Login now