def main(prognm, *args): signal(SIGINT, handleInt) if '--showHelp' in args or '-H' in args: return displayHelpMessage() if '-t' in args or '--runtest' in args: return runTests() return handle(*accrueArgs(args))
def main(proggy, *args): if args: return handle(*accrueArgs(args)) return stderr.write(''' Usage: python assessline.py <assessor source> <file1> [<file2>...] Potential sources of assessors are: -d <database host> Specify a host that has a Mongo database -p <preassessor path> Spceify a file containing pre-assessors -o <postassessor path> Specify a file containing post-assessors If files specifying assessors are given, they will be used and the database directive ignored. Performs assessment against each individual line found in each file given and stores a complete errand generated from each prospect line in a separate errand file. ''') or 20
def main(program, *arguments): if "-t" in arguments: return 0 if all(map(apply, testModule())) else 1 if arguments: return handle(*accrueArgs(arguments)) stderr.write('''Mosher: Assess and catalog prospects at once. usage: %s [-d <host>] [-p <file>] [-o <file>] [-h <host>] [-u <user>] Options: -d <host> Pulls assessors and reports observations to database on host -h <host> Sends all commands to given host -o <file> Pulls post-assessors from file -p <file> Pulls pre-assessors from file -u <user> Sends commands to host as user Example: $ cat prospects | ./mosh.py [options] Same as running: $ cat prospects | ./cmdassess.py [options] | ./catalog.py [options] ''')