""" diff output of commands: %prog [global options] command1 [arg1] [...] [--] command2 [arg] [...] """ def main(): parser.add_option("-d", "--cwd", dest='directory', help="directory to execute command in; if not set, each command will be executed from their directories")