Commit f40205f8 authored by Sigmund Augdal's avatar Sigmund Augdal

Added whitespace between subcommands in parse_args

parent 3645323d
......@@ -122,18 +122,26 @@ def parse_args():
parser = argparse.ArgumentParser('Zabbix cmd line client')
subparsers = parser.add_subparsers(help='Command', dest='command')
subparsers.required = True
parser_login = subparsers.add_parser('login', help='login')
parser_get_items = subparsers.add_parser('get-items', help='Get script items')
parser_get_items.add_argument('--include-inherited', action='store_true', help='Include inherited items in output')
parser_get_items.add_argument('--only-enabled', action='store_true', help='Show only enabled items')
parser_get_items.add_argument('--only-external', action='store_true', help='Show only external check items')
parser_dump_vkilo = subparsers.add_parser('dump-vkilo', help='Get verktøykasse ILO config')
parser_get_item = subparsers.add_parser('get-item', help='Get item by ID')
parser_get_item.add_argument('itemid', type=int, help='Item ID')
parser_get_web_tests = subparsers.add_parser('get-web-tests', help='Get Web tests')
parser_get_web_tests.add_argument('--include-inherited', action='store_true', help='Include inherited items in output')
parser_get_unreachable = subparsers.add_parser('get-unreachable', help='Get unreachable hosts')
parser_get_hosts = subparsers.add_parser('get-hosts', help='Get hosts')
return parser.parse_args()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment