Skip to content

Commit

Permalink
Merge pull request #48 from shivam-deepcompute/enhanced_basescript
Browse files Browse the repository at this point in the history
enhanced basescript functionality , args = None, and changed version …
  • Loading branch information
prashanthellina authored Dec 21, 2017
2 parents 955a177 + d0baeec commit ee8c6bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions basescript/basescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BaseScript(object):
# periodic interval to dump stats
DUMP_STATS_INTERVAL = timedelta(seconds=1)

def __init__(self):
def __init__(self, args=None):
# argparse parser obj
self.parser = argparse.ArgumentParser(description=self.DESC)
self.define_baseargs(self.parser)
Expand All @@ -40,7 +40,7 @@ def __init__(self):

self.define_args(self.subcommand_run)

self.args = self.parser.parse_args()
self.args = self.parser.parse_args(args=args)

self.hostname = socket.gethostname()
self.log = self.init_logger()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_long_description():

long_description = get_long_description()

version = '0.1.14'
version = '0.1.15'
setup(
name="basescript",
version=version,
Expand Down

0 comments on commit ee8c6bd

Please sign in to comment.