add examples to the usage

This commit is contained in:
Seth Vidal 2013-07-04 04:31:55 +00:00
parent c779358a99
commit 68c5ad147e

View file

@ -18,7 +18,16 @@ def date_cheat(datestr):
def parse_args(args):
usage = """
show_changed [options] [-d datestr] [-p playbook]
logview [options] [-d datestr] [-p playbook]
examples:
logview -d yesterday -l # lists playbooks run on that date
logview -s OK -s FAILED -d yesterday # list events from yesterday that failed or were ok
logview -s CHANGED -d yesterday -p mirrorlist # list events that changed from the mirrorlist playbook
"""
parser = OptionParser(usage=usage)
parser.add_option("-d", default='today', dest='datestr', help="time string of when you want logs")