Arguments from the command line
breamoreboy at yahoo.co.uk
Mon Sep 6 18:08:32 CEST 2010
On 06/09/2010 16:48, aug dawg wrote:
> I've seen Python programs that can be activated from the command line. For
> 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)
See sys.argv at http://docs.python.org/library/sys.html
More information about the Python-list