[Tutor] Arguments from the command line

Mark Weil mark at martialfit.net
Mon Sep 6 18:11:57 CEST 2010

I think you're looking for this:


you'll also want to read up on sys.argv


On Mon, Sep 6, 2010 at 8:48 AM, aug dawg <augdawg09 at gmail.com> 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 Python. I know that commit is a function that
> commits to a repo, but what command does the program use in order to get the
> commit name, like "This is a commit name" (This would make a commit with
> "This is a commit name" as the commit name)
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100906/9c28a6a9/attachment.html>

More information about the Tutor mailing list