#!/usr/bin/env pythonimport sysdef usage(): print 'At least 2 arguments (incl. cmd name).' print 'usage: args.py arg1 arg2 [arg3... ]' sys.exit(1)argc = len(sys.argv)if argc < 3: usage()print "number of args entered:", argcprint "args (incl. cmd name) were:", sys.argv
Name (required)
email (will not be published) (required)
Website