Jaymon / captain

command line python scripts for humans
MIT License
13 stars 1 forks source link

inheritance problems #20

Closed Jaymon closed 8 years ago

Jaymon commented 8 years ago

@arg("--foo")
def main_one(): pass

@args(main_one)
def main_two(foo): pass

Given a setup like above, I'm pretty sure main_two will try and add another foo argument even though it is contained in the parent, so there should be a check to make sure we aren't double adding. I knew it wasn't going to be as easy as it appeared