From 9dcfbb1130119084e3faa180d06dd2351e38b5d0 Mon Sep 17 00:00:00 2001 From: Codey Oxley Date: Wed, 18 Nov 2015 14:01:30 -0800 Subject: [PATCH] Removed version argument from argparse This was breaking standalone execution and isn't needed --- contrib/inventory/nsot.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contrib/inventory/nsot.py b/contrib/inventory/nsot.py index 611e3cc0d0..0ca1625df3 100644 --- a/contrib/inventory/nsot.py +++ b/contrib/inventory/nsot.py @@ -148,9 +148,6 @@ from pynsot.client import get_api_client from pynsot.app import HttpServerError from click.exceptions import UsageError -# Version source of truth is in setup.py -__version__ = pkg_resources.require('ansible_nsot')[0].version - def warning(*objs): print("WARNING: ", *objs, file=sys.stderr) @@ -299,7 +296,6 @@ def parse_args(): # Establish parser with options and error out if no action provided parser = argparse.ArgumentParser( description=desc, - version=__version__, conflict_handler='resolve', )