0
I Use This!
Inactive

Commits : Listings

Analyzed about 15 hours ago. based on code collected 1 day ago.
May 09, 2023 — May 09, 2024
Commit Message Contributor Files Modified Lines Added Lines Removed Code Location Date
Added support for stdout and stderr special arguments and documented them More... almost 15 years ago
Documented the new optfunc.main(func) idiom, which uses a tricksy stack introspection to detect if __name__ == '__main__' for you More... almost 15 years ago
clarified stdin code a bit More... almost 15 years ago
Added support for special stdin argument More... almost 15 years ago
optfunc.main() - like optfunc.run(), but it peeks at the stack and uses it to decide if __name__ == '__main__', saving you from having to type that idiom yourself More... almost 15 years ago
Added BSD license More... almost 15 years ago
Merge commit 'rybesh/master' More... almost 15 years ago
Pulled and merged changes from master. More... almost 15 years ago
TODO: Subcommands need to interact with --help better More... almost 15 years ago
Added support for subcommands - just pass a list of functions to optfunc.run e.g. optfunc.run([one, two, three]) More... almost 15 years ago
Get custom names working. More... almost 15 years ago
Merge branch 'master' of git://github.com/simonw/optfunc More... almost 15 years ago
Handle name conflicts with the default help flag. More... almost 15 years ago
Handle classes as well as functions. More... almost 15 years ago
Added TODO based on neat idea from @nasrat - pass multiple functions to the run() command and have the first command line argument select which function gets executed. More... almost 15 years ago
Added documentation of how arguments are treated, and how option names are derived from function parameter names More... almost 15 years ago
Impoved command line output example in readme More... almost 15 years ago
Added shebang line to demo scripts More... almost 15 years ago
Added documentation of @arghelp and @notstrict to the readme More... almost 15 years ago
TODO: support for *args, but probably not **kwargs More... almost 15 years ago
Fixed a typo in a comment More... almost 15 years ago
Removed a TODO (argument help text is done) More... almost 15 years ago
Added a demo command line script based on http://github.com/simonw/geocoders which demonstrates the new @notstrict and @arghelp decorators More... almost 15 years ago
Added @arghelp and @notstrict decorators, plus tests More... almost 15 years ago
TODO: allow function to be a generator More... almost 15 years ago
Renamed example.py to demo.py More... almost 15 years ago
Fixed a bug in the readme and added some TODOs More... almost 15 years ago
Split a test in to two More... almost 15 years ago
Smarter code for deriving the -short and --long option names for a named function parameter More... almost 15 years ago
Fixed tests after last commit More... almost 15 years ago