mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add examples to the usage
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user