dasich / argvard Goto Github PK
View Code? Open in Web Editor NEWPython framework for command line applications
License: Apache License 2.0
Python framework for command line applications
License: Apache License 2.0
Travis doesn't have Python 3.4 installed. Can we install it?
Currently argvard forces the user to define a main function, and do something useful in it. However, i have the situation where i can't do anything meaningful in main(), so i want to display the help there and exit with code 1. Currently i do this in main:
app.options['--help'].function(context)
but it would be nice to do this in a documented way. I see two options:
1.) define a default main function which does exactly that (in other words, don't force the user to define a main function)
2.) define an API for showing the help and exiting with code 1.
3.) Both.
I'd like to make it possible to invoke options and commands by providing an API like delegate(context, argv)
. In this case argv
could be something like ['--help']
to call the help function but one could also include arguments or make more complicated calls like [command --option argument]
.
Fundamentally this would call __call_
with the current context skipping any setup code.
@mitsuhiko just released click, whose API seems similar to argvard.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.