butterflyTee 0 Light Poster

import sys :o

def main():
usage = 'Usage: %s [options] <file name>\n' % sys.argv[0]
options = 'Options:\n'
options = options + ' -c, --chars print the character counts\n'
options = options + ' -l, --lines print the newline counts\n'
options = options + ' -w, --words print the word counts\n'
usage = usage + options

countChars = 0
countWords = 0
countLines = 0

main()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.