Source

argh / argh / decorators.py

Author Commit Message Labels Comments Date
Andy Mikhailenko
Fixed typo in docs.
Andy Mikhailenko
BACKWARDS-INCOMPATIBLE. Added support for Python 3.x. Dropped support for Python ≤ 2.5. Included Benjamin Peterson's library "six" to keep the code clean while Python 2.x/3.x-compatible. Updated documentation.
Andy Mikhailenko
Removed unused imports.
Andy Mikhailenko
Removed stray print statement (re #12).
Andy Mikhailenko
Fixed #12: the @command decorator would break on 2+ arguments which names start with the same character.
Andy Mikhailenko
Fixed documentation.
Andy Mikhailenko
Refactored.
Andy Mikhailenko
Added bash completion for commands. Options are not yet supported. User needs to bind completion to certain script name (to be documented). Tests are provided (for internal API only).
Andy Mikhailenko
Added @command decorator. Warning: no tests yet (though it just adds a thin layer upon those already tested).
Andy Mikhailenko
Rearranged the code. Added test for @alias decorator. Removed the previously deprecated decorator @generator.