openhub.net
Black Duck Software, Inc.
Black Duck Open Hub
Follow @
OH
Sign In
Join Now
Projects
People
Organizations
Tools
Blog
BDSA
Projects
People
Projects
Organizations
Forums
O
optfunc
Settings
|
Report Duplicate
0
I Use This!
×
Login Required
Log in to Open Hub
Remember Me
Inactive
Commits
: Listings
Analyzed
about 15 hours
ago. based on code collected
1 day
ago.
May 09, 2023 — May 09, 2024
Showing page 1 of 2
Search / Filter on:
Commit Message
Contributor
Files Modified
Lines Added
Lines Removed
Code Location
Date
Added support for stdout and stderr special arguments and documented them
Simon Willison
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
Simon Willison
More...
almost 15 years ago
clarified stdin code a bit
Simon Willison
More...
almost 15 years ago
Added support for special stdin argument
Simon Willison
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
Simon Willison
More...
almost 15 years ago
Added BSD license
Simon Willison
More...
almost 15 years ago
Merge commit 'rybesh/master'
Simon Willison
More...
almost 15 years ago
Pulled and merged changes from master.
Ryan Shaw
More...
almost 15 years ago
TODO: Subcommands need to interact with --help better
Simon Willison
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])
Simon Willison
More...
almost 15 years ago
Get custom names working.
Ryan Shaw
More...
almost 15 years ago
Merge branch 'master' of git://github.com/simonw/optfunc
Ryan Shaw
More...
almost 15 years ago
Handle name conflicts with the default help flag.
Ryan Shaw
More...
almost 15 years ago
Handle classes as well as functions.
Ryan Shaw
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.
Simon Willison
More...
almost 15 years ago
Added documentation of how arguments are treated, and how option names are derived from function parameter names
Simon Willison
More...
almost 15 years ago
Impoved command line output example in readme
Simon Willison
More...
almost 15 years ago
Added shebang line to demo scripts
Simon Willison
More...
almost 15 years ago
Added documentation of @arghelp and @notstrict to the readme
Simon Willison
More...
almost 15 years ago
TODO: support for *args, but probably not **kwargs
Simon Willison
More...
almost 15 years ago
Fixed a typo in a comment
Simon Willison
More...
almost 15 years ago
Removed a TODO (argument help text is done)
Simon Willison
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
Simon Willison
More...
almost 15 years ago
Added @arghelp and @notstrict decorators, plus tests
Simon Willison
More...
almost 15 years ago
TODO: allow function to be a generator
Simon Willison
More...
almost 15 years ago
Renamed example.py to demo.py
Simon Willison
More...
almost 15 years ago
Fixed a bug in the readme and added some TODOs
Simon Willison
More...
almost 15 years ago
Split a test in to two
Simon Willison
More...
almost 15 years ago
Smarter code for deriving the -short and --long option names for a named function parameter
Simon Willison
More...
almost 15 years ago
Fixed tests after last commit
Simon Willison
More...
almost 15 years ago
←
1
2
→
This site uses cookies to give you the best possible experience. By using the site, you consent to our use of cookies. For more information, please see our
Privacy Policy
Agree