diff options
| author | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-04 04:31:55 +0000 |
|---|---|---|
| committer | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-04 04:31:55 +0000 |
| commit | 68c5ad147ec0bd7d95a1b7cb01683b839b7aab70 (patch) | |
| tree | ab07ec57ba3bfb2280c10023bd558217a04f2747 /scripts | |
| parent | c779358a994f03b7e43ff8dd89ba2bba4fcccb4b (diff) | |
add examples to the usage
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/logview | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/logview b/scripts/logview index fb1e6b45f..5b2d7b334 100755 --- a/scripts/logview +++ b/scripts/logview @@ -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") |
