1 | # lognestmonster Copyright (c) 2019 Joshua 'joshuas3' Stockin |
2 | # <https://github.com/JoshuaS3/lognestmonster/>. |
3 |
|
4 |
|
5 | # This file is part of lognestmonster. |
6 |
|
7 | # lognestmonster is free software: you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. |
11 |
|
12 | # lognestmonster is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU General Public License for more details. |
16 |
|
17 | # You should have received a copy of the GNU General Public License |
18 | # along with lognestmonster. If not, see <https://www.gnu.org/licenses/>. |
19 |
|
20 | from text import * |
21 |
|
22 | ARGUMENT_OPTIONS = { |
23 |
|
24 | # Command meta |
25 |
|
26 | "help": { |
27 | "indicators": ["-h", "-?", "--help"], |
28 | "option_count": 0, |
29 | "description": DESCRIPTION_HELP |
30 | }, |
31 | "version": { |
32 | "indicators": ["--version"], |
33 | "option_count": 0, |
34 | "description": DESCRIPTION_VERSION |
35 | }, |
36 |
|
37 | # Data |
38 |
|
39 | "status": { |
40 | "indicators": ["-s", "--status"], |
41 | "option_count": 0, |
42 | "description": DESCRIPTION_STATUS |
43 | }, |
44 |
|
45 | # Verbosity levels |
46 |
|
47 | "errors": { |
48 | "indicators": ["-e", "--errors"], |
49 | "option_count": 0, |
50 | "description": DESCRIPTION_ERRORS |
51 | }, |
52 | "warnings": { |
53 | "indicators": ["-w", "--warnings"], |
54 | "option_count": 0, |
55 | "description": DESCRIPTION_WARNINGS |
56 | }, |
57 | "info": { |
58 | "indicators": ["-i", "--info"], |
59 | "option_count": 0, |
60 | "description": DESCRIPTION_INFO |
61 | }, |
62 | "debug": { |
63 | "indicators": ["-d", "--debug"], |
64 | "option_count": 0, |
65 | "description": DESCRIPTION_DEBUG |
66 | }, |
67 | "verbose": { |
68 | "indicators": ["-v", "--verbose"], |
69 | "option_count": 0, |
70 | "description": DESCRIPTION_VERBOSE |
71 | }, |
72 | "veryverbose": { |
73 | "indicators": ["-vv", "--veryverbose"], |
74 | "option_count": 0, |
75 | "description": DESCRIPTION_VERYVERBOSE |
76 | }, |
77 |
|
78 | # filters |
79 |
|
80 | "after": { |
81 | "indicators": ["-a", "--after"], |
82 | "option_count": 1, |
83 | "description": DESCRIPTION_AFTER |
84 | }, |
85 | "before": { |
86 | "indicators": ["-b", "--before"], |
87 | "option_count": 1, |
88 | "description": DESCRIPTION_BEFORE |
89 | }, |
90 | "tag": { |
91 | "indicators": ["-t", "--tag"], |
92 | "option_count": 1, |
93 | "description": DESCRIPTION_TAG |
94 | }, |
95 | "statement": { |
96 | "indicators": ["-c", "--statement"], |
97 | "option_count": 1, |
98 | "description": DESCRIPTION_STATEMENT |
99 | }, |
100 | "event": { |
101 | "indicators": ["-q", "--event"], |
102 | "option_count": 1, |
103 | "description": DESCRIPTION_EVENT |
104 | }, |
105 |
|
106 | # other |
107 |
|
108 | "tail": { |
109 | "indicators": ["-u", "--tail"], |
110 | "option_count": 0, |
111 | "description": DESCRIPTION_TAIL |
112 | } |
113 | } |
114 |
|