Skip to content

Commit 28bdb17

Browse files
committed
fix: add options for user help message
1 parent 01f7fbc commit 28bdb17

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

mamonsu/lib/parser.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--add-plugins <directory>
2020
2121
22-
Export zabbix keys for zabbix-agent in config file:
22+
Export zabbix keys for native zabbix-agent:
2323
Command: export zabbix-parameters
2424
Examples:
2525
{prog} export zabbix-parameters <file>
@@ -28,21 +28,27 @@
2828
Options:
2929
--plugin-type <plugin_type> (pg,sys,all)
3030
--pg-version <pg_version>
31+
--add-plugins <directory>
32+
--config <file>
3133
Default plugin_type = all, pg-version = 10
3234
Note: default pg-version is vanilla, but with PGPRO or PGEE before version number it can be changed. Supported version
3335
numbers are 10, 11, 9.6, 9.5
3436
Example: PGPRO_10 or PGEE_11 or PGPRO_9.6
3537
3638
37-
Export zabbix agent template with additional plugins included in config file:
39+
Export template for native zabbix agent:
3840
Command: export zabbix-template
3941
Examples:
4042
{prog} export zabbix-template <file>
4143
Options:
4244
--template-name <template name>
45+
--plugin-type <plugin_type> (pg,sys,all)
4346
--application <application name in template>
4447
--pg-version <pg_version>
45-
Default template name = PostgresPro-<platform name>, application = App-PostgresPro-<platform name>, pg-version = 10,
48+
--add-plugins <directory>
49+
--config <file>
50+
Default plugin_type = all, template name = PostgresPro-<platform name>,
51+
application = App-PostgresPro-<platform name>, pg-version = 10,
4652
Note: default pg-version is vanilla, but with PGPRO or PGEE before version number it can be changed. Supported version
4753
numbers are 10, 11, 9.6, 9.5
4854
Example: PGPRO_10 or PGEE_11 or PGPRO_9.6
@@ -56,6 +62,7 @@
5662
--add-plugins <directory>
5763
--template-name <template name>
5864
--application <application name in template>
65+
--config <file>
5966
Default template name = PostgresPro-<platform name>, application = App-PostgresPro-<platform name>
6067
6168
@@ -179,25 +186,24 @@ def print_help(self):
179186
Options:
180187
--config <file>
181188
-t <template name>
182-
-a <application name in template>
189+
--application <application name in template>
183190
184191
185-
Export zabbix keys for zabbix-agent in config file:
192+
Export zabbix keys for native zabbix-agent:
186193
Command: export zabbix-parameters
187194
Examples:
188195
{prog} export zabbix-parameters <file>
189196
Options:
190-
-v <pg_version>
197+
--pg-version <pg_version>
191198
192-
193-
194-
Export zabbix agent template with additional plugins included in config file:
199+
200+
Export template for native zabbix agent:
195201
Command: export zabbix-template
196202
Examples:
197203
{prog} export zabbix-template <file>
198204
Options:
199205
-t <template name>
200-
-a <application name in template>
206+
--application <application name in template>
201207
202208
""")
203209
sys.exit(2)

0 commit comments

Comments
 (0)