Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (10 sloc) 0.314 kB
#!/usr/bin/env python
import optfunc
def upper(filename, verbose = False):
"Usage: %prog <file> [--verbose] - output file content in uppercase"
s = open(filename).read()
if verbose:
print "Processing %s bytes..." % len(s)
print s.upper()
if __name__ == '__main__':
optfunc.run(upper)
Jump to Line
Something went wrong with that request. Please try again.