Commit e0b1955b by Eric Coissac

Fix issue #4 by adding a --version option to the oa command

parent 3b0d5f95
......@@ -31,6 +31,7 @@ default_config = {
'seeds' : None,
'seedmincov' : 1,
'kup' : None,
'version' : False,
'progress' : True
}
......@@ -39,9 +40,10 @@ default_config = {
from orgasm import command
from orgasm.version import version
__all__ = []
__version__ = 0.1
__version__ = version
__date__ = '2014-09-28'
__updated__ = '2014-09-28'
......@@ -122,6 +124,11 @@ def getLogger(config):
def buildArgumentParser():
parser = argparse.ArgumentParser()
parser.add_argument('--version', dest='orgasm:version',
action='store_true',
default=False,
help='Print the version of the Organelle Assembler')
parser.add_argument('--no-log', dest='orgasm:log',
action='store_false',
default=None,
......@@ -190,6 +197,11 @@ def getConfiguration():
if options[k] is not None:
s[key]=options[k]
if config['orgasm']['version']:
print("The Organelle Assembler - Version %s" % __version__)
sys.exit(0)
if config['orgasm']['outputfilename'] is None:
config['orgasm']['outputfilename']=config['orgasm']['indexfilename']
......@@ -202,7 +214,8 @@ def getConfiguration():
if __name__ =="__main__":
config = getConfiguration()
config = getConfiguration()
config['orgasm']['module'].run(config)
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