I think there is an opportunity to simplify the logic around xpath/filters.
Both are None by default if there are no args passed. You check them inside get-running-config and get, so no need to call these two with one or the other?
if args.get_running:
# if args.xpath:
# get_running_config(m, xpath=args.xpath)
# else:
# get_running_config(m, filter=args.filter)
get_running_config(m, xpath=args.xpath, filter=args.filter)
From aradford123:
elif args.get_oper:
if args.xpath: