Henry Leyh writes:
But now I would also like to be able to _write_ such a config file
FILE that can be read in a later run. And FILE should contain only
those arguments that were given on the command line.
Say, I tell argparse to look for arguments -s|--sopt STRING,
-i|--iopt INT,
On 16.05.2013 08:08, Jussi Piitulainen wrote:
Henry Leyh writes:
But now I would also like to be able to _write_ such a config file
FILE that can be read in a later run. And FILE should contain only
those arguments that were given on the command line.
Say, I tell argparse to look for
Hello,
I am writing a program that gets its parameters from a combination of
config file (using configparser) and command line arguments (using
argparse). Now I would also like the program to be able to _write_ a
configparser config file that contains only the parameters actually
given on
On 15/05/2013 2:34 AM, Henry Leyh wrote:
Hello,
I am writing a program that gets its parameters from a combination of
config file (using configparser) and command line arguments (using
argparse). Now I would also like the program to be able to _write_ a
configparser config file that contains
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentParser() know which of its namespace members were
actually hit during
On 05/15/2013 08:24 AM, Roy Smith wrote:
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentParser() know which of its
Colin J. Williams writes:
On 15/05/2013 2:34 AM, Henry Leyh wrote:
Hello,
I am writing a program that gets its parameters from a combination
of config file (using configparser) and command line arguments
(using argparse). Now I would also like the program to be able to
_write_ a
On 15.05.2013 14:24, Roy Smith wrote:
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline, i.e. does
argparse.ArgumentParser() know which of its namespace
On 15 May 2013 13:52, Henry Leyh henry.l...@ipp.mpg.de wrote:
On 15.05.2013 14:24, Roy Smith wrote:
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
command line arguments were actually given on the commandline,
On 15.05.2013 15:00, Oscar Benjamin wrote:
On 15 May 2013 13:52, Henry Leyh henry.l...@ipp.mpg.de wrote:
On 15.05.2013 14:24, Roy Smith wrote:
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
command line
Yes, I was trying that and it sort of works with strings if I use something
sufficiently improbable like __UNSELECTED__ as default. But it gets
difficult with boolean or even number arguments where you just may not have
valid improbable defaults. You could now say, so what, it's the
On Wed, 15 May 2013, Henry Leyh wrote:
Yes, I was trying that and it sort of works with strings if I use something
sufficiently improbable like __UNSELECTED__ as default. But it gets
difficult with boolean or even number arguments where you just may not have
valid improbable defaults. You
On 15.05.2013 16:08, Skip Montanaro wrote:
Yes, I was trying that and it sort of works with strings if I use something sufficiently improbable
like __UNSELECTED__ as default. But it gets difficult with boolean or even number
arguments where you just may not have valid improbable defaults.
However, maybe I could ...
... switch to getopt? wink
Skip
--
http://mail.python.org/mailman/listinfo/python-list
In article kn00fb$8kc$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
On 15.05.2013 14:24, Roy Smith wrote:
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
command line arguments were actually given
On 15.05.2013 17:29, Roy Smith wrote:
In article kn00fb$8kc$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
On 15.05.2013 14:24, Roy Smith wrote:
In article kmva9j$1hbk$1...@gwdu112.gwdg.de,
Henry Leyh henry.l...@ipp.mpg.de wrote:
Is there a simple way to determine which
16 matches
Mail list logo