add examples to the usage
This commit is contained in:
parent
c779358a99
commit
68c5ad147e
1 changed files with 10 additions and 1 deletions
|
@ -18,7 +18,16 @@ def date_cheat(datestr):
|
||||||
|
|
||||||
def parse_args(args):
|
def parse_args(args):
|
||||||
usage = """
|
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 = OptionParser(usage=usage)
|
||||||
parser.add_option("-d", default='today', dest='datestr', help="time string of when you want logs")
|
parser.add_option("-d", default='today', dest='datestr', help="time string of when you want logs")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue