Adding roles to zgrep util.

This commit is contained in:
Samuel Clay 2015-08-21 13:12:07 -07:00
parent 97be8b38a9
commit 508864b4cc

View file

@ -95,9 +95,11 @@ if __name__ == "__main__":
parser = OptionParser()
parser.add_option("-f", "--find", dest="find")
parser.add_option("-p", "--path", dest="path")
parser.add_option("-r", "--role", dest="role")
(options, args) = parser.parse_args()
path = options.path
find = options.find
role = options.role or 'app'
command = "zgrep \"%s\"" % find
main(role="app", command=command, path=path)
main(role=role, command=command, path=path)