1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Removed version argument from argparse

This was breaking standalone execution and isn't needed
This commit is contained in:
Codey Oxley 2015-11-18 14:01:30 -08:00
parent 15915bb3ca
commit 9dcfbb1130

View file

@ -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',
)