Permalink
Browse files

stop requiring nomad.ini for "version" command

  • Loading branch information...
1 parent 73856a0 commit 28d36e2ca457662a83e6369ad7cdca12c059427e @piranha committed Dec 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 nomad/__init__.py
View
@@ -27,7 +27,7 @@
def getconfig(func):
- if func.__name__.startswith('help'):
+ if func.__name__.startswith('help') or func.__name__ in ('version',):
return func
def inner(*args, **kwargs):
try:
@@ -145,7 +145,7 @@ def info(**opts):
@app.command()
-def version():
+def version(**opts):
'''Show app version
'''
print 'Nomad v%s' % __version__

0 comments on commit 28d36e2

Please sign in to comment.