neithere / argh

An argparse wrapper that doesn't make you say "argh" each time you deal with it.
http://argh.rtfd.org
GNU Lesser General Public License v3.0
369 stars 56 forks source link

getting NameError for @arg decorator #143

Closed exxmen closed 3 years ago

exxmen commented 3 years ago

getting NameError: name 'arg' is not defined when trying to use @arg decorator

neithere commented 3 years ago

No context provided. Assuming you just need to do this:

from argh import arg

@arg(...)
def ...