Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-11 Thread Peter Otten
Alex Kleider wrote: On 2013-10-09 00:29, Peter Otten wrote: While I did not read the documentation I did try your code: (docopt)$ cat test #!/usr/bin/env python # -*- coding : utf -8 -*- # file: 'test' Usage: test [new_data | text_entry FILE | show_data ] [-hdv] [--db=DATABASE]

Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-10 Thread Alex Kleider
On 2013-10-09 00:29, Peter Otten wrote: While I did not read the documentation I did try your code: (docopt)$ cat test #!/usr/bin/env python # -*- coding : utf -8 -*- # file: 'test' Usage: test [new_data | text_entry FILE | show_data ] [-hdv] [--db=DATABASE] [--tb=TABLE] -h --help

Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-09 Thread Peter Otten
Alex Kleider wrote: A recent post recommended the docopt module so I've incorporated it into the code I'm using to learn SQLite. It's not behaving as I expected. Here's a snippet of code: #!/usr/bin/env python # -*- coding : utf -8 -*- # file: 'test' Usage: test [new_data |

Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-09 Thread Alex Kleider
On 2013-10-08 22:35, Mark Lawrence wrote: On 09/10/2013 01:50, Alex Kleider wrote: A recent post recommended the docopt module so I've incorporated it into the code I'm using to learn SQLite. It's not behaving as I expected. Here's a snippet of code: #!/usr/bin/env python # -*- coding : utf

[Tutor] docopt module: defaults appear to be ignored

2013-10-08 Thread Alex Kleider
A recent post recommended the docopt module so I've incorporated it into the code I'm using to learn SQLite. It's not behaving as I expected. Here's a snippet of code: #!/usr/bin/env python # -*- coding : utf -8 -*- # file: 'test' Usage: test [new_data | text_entry FILE | show_data ] [-hdv]

Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-08 Thread Steven D'Aprano
On Tue, Oct 08, 2013 at 05:50:15PM -0700, Alex Kleider wrote: A recent post recommended the docopt module so I've incorporated it into the code I'm using to learn SQLite. It's not behaving as I expected. Since docopt is not a standard part of Python, nor part of the language itself, you may

Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-08 Thread Alex Kleider
On 2013-10-08 18:02, Steven D'Aprano wrote: Since docopt is not a standard part of Python, nor part of the language itself, you may not find anyone here who knows it well enough to solve the problem. Also keep in mind that docopt is still a fairly young package and may still contain bugs. If we

Re: [Tutor] docopt module: defaults appear to be ignored

2013-10-08 Thread Mark Lawrence
On 09/10/2013 01:50, Alex Kleider wrote: A recent post recommended the docopt module so I've incorporated it into the code I'm using to learn SQLite. It's not behaving as I expected. Here's a snippet of code: #!/usr/bin/env python # -*- coding : utf -8 -*- # file: 'test' Usage: test [new_data