Skip to content

Commit

Permalink
Testing command line parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
István Bozsó committed Mar 4, 2020
1 parent 1ec8538 commit 80efab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
def annot(**kwargs):
parent = kwargs.pop("parent", None)

def annotate(f):
def annotated(f):
f.__parent__ = parent
f.__annotations__ = kwargs

return f

return annotate
return annotated


class CParse(object):
class ArgParse(object):
def __init__(self, **kwargs):
self.argp, self.args = ap.ArgumentParser(**kwargs), None

Expand Down

0 comments on commit 80efab7

Please sign in to comment.