Alrighty! Thanks, everyone!
On Mon, Sep 6, 2010 at 6:48 PM, Steven D'Aprano wrote:
> On Tue, 7 Sep 2010 02:08:27 am Hugo Arts wrote:
>
> > sys.argv is a list of all arguments from the command line. However,
> > you'll rarely deal with it directly, there's various modules that
> > deal with hand
On Tue, 7 Sep 2010 02:08:27 am Hugo Arts wrote:
> sys.argv is a list of all arguments from the command line. However,
> you'll rarely deal with it directly, there's various modules that
> deal with handling arguments. I believe the current one is argparse:
> http://docs.python.org/library/argparse
On 9/6/2010 11:48 AM, aug dawg wrote:
I've seen Python programs that can be activated from the command line.
For example:
hg
This displays a list of commands for the Mercurial revision control
system. But another command is this:
hg commit "This is a commit name"
Mercurial is written in P
I think you're looking for this:
http://docs.python.org/library/argparse.html
you'll also want to read up on sys.argv
http://docs.python.org/library/sys.html#sys.argv
On Mon, Sep 6, 2010 at 8:48 AM, aug dawg wrote:
> I've seen Python programs that can be activated from the command line. For
On Mon, Sep 6, 2010 at 5:48 PM, aug dawg wrote:
> I've seen Python programs that can be activated from the command line. For
> example:
> hg
>
> This displays a list of commands for the Mercurial revision control system.
> But another command is this:
> hg commit "This is a commit name"
> Mercuria