On Jul 15, 4:28 pm, "Joel Koltner" <[EMAIL PROTECTED]>
wrote:
> "Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> > What's wrong with sys.argv ?
>
> Mainly that it doesn't exist. :-) The example was slightly contrived -- I'm
> really dealing with commands inter
"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What's wrong with sys.argv ?
Mainly that it doesn't exist. :-) The example was slightly contrived -- I'm
really dealing with commands interactively entered within a program in
response to raw_input(), although the
Joel Koltner <[EMAIL PROTECTED]> wrote:
>I normally use str.split() for simple splitting of command line arguments, but
>I would like to support, e.g., long file names which-- under windows -- are
>typically provided as simple quoted string. E.g.,
>
>myapp --dosomething --loadthis "my file name.
Thanks Matt, that looks like just what I want!
--
http://mail.python.org/mailman/listinfo/python-list
Joel Koltner wrote:
I normally use str.split() for simple splitting of command line arguments, but
I would like to support, e.g., long file names which-- under windows -- are
typically provided as simple quoted string. E.g.,
myapp --dosomething --loadthis "my file name.fil"
...and I'd like t
On Mon, Jul 14, 2008 at 6:33 PM, Joel Koltner <[EMAIL PROTECTED]>
wrote:
> I normally use str.split() for simple splitting of command line arguments,
> but
> I would like to support, e.g., long file names which-- under windows -- are
> typically provided as simple quoted string. E.g.,
>
> myapp -
On Jul 14, 6:33 pm, "Joel Koltner" <[EMAIL PROTECTED]>
wrote:
> I normally use str.split() for simple splitting of command line arguments, but
> I would like to support, e.g., long file names which-- under windows -- are
> typically provided as simple quoted string. E.g.,
>
> myapp --dosomething -
I normally use str.split() for simple splitting of command line arguments, but
I would like to support, e.g., long file names which-- under windows -- are
typically provided as simple quoted string. E.g.,
myapp --dosomething --loadthis "my file name.fil"
...and I'd like to get back a list wher