Skip to content

Commit

Permalink
minor: fixed error in moa.args.private - did not return a function ob…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
Mark Fiers committed Oct 23, 2012
1 parent 8a0994c commit 923dd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/moa/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def _removeIndent(txt):

return "\n".join(nld)


def _commandify(f, name):
"""
Do the actual commandification of function f with specified name
Expand All @@ -227,7 +228,6 @@ def _commandify(f, name):
#_desc = [x.strip() for x in f.__doc__.strip().split("\n", 1)]
_desc = f.__doc__.strip().split("\n", 1)


if len(_desc) == 2:
shortDesc, longDesc = _desc
longDesc = longDesc
Expand Down Expand Up @@ -325,7 +325,7 @@ def localRecursive(f):

def private(f):
sysConf.commands[f.func_name]['private'] = True

return f

def forceable(f):
f.arg_parser.add_argument('-f', '--force', action='store_true',
Expand Down

0 comments on commit 923dd63

Please sign in to comment.