You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: check_snmp.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@
9
9
fromtypingimportNamedTuple
10
10
11
11
_parser=argparse.ArgumentParser()
12
-
_parser.add_argument('-v', dest='version', help='The SNMP version to use.', default='2c')
13
-
_parser.add_argument('-c', dest='community', help='The community string to use.', default='public')
14
-
_parser.add_argument('-r', dest='respect', help='Respect properties marked as important when other results contain errors.', action='store_true')
15
-
_parser.add_argument('-f', dest='more_format', help='Include additional format like colors in the output.', action='store_true')
12
+
_parser.add_argument('-v', '--version', dest='version', help='The SNMP version to use.', default='2c')
13
+
_parser.add_argument('-c', '--community', dest='community', help='The community string to use.', default='public')
14
+
_parser.add_argument('-r', '--respect', dest='respect', help='Respect properties marked as important when other results contain errors.', action='store_true')
15
+
_parser.add_argument('-f', '--format', dest='more_format', help='Include additional format like colors in the output.', action='store_true')
16
16
_parser.add_argument('host', help='The host to connect to.')
17
-
_parser.add_argument('config', nargs='?', help='The configuration file to load.', default='config_default.json')
17
+
_parser.add_argument('--config', nargs='?', help='The configuration file to load.', default='config_default.json')
18
18
_parser.add_argument('category', nargs='*', help='One or more of the categories from the configuration separated by spaces.')
0 commit comments