[issue36863] argparse doesn't like options in the middle of arguments

2019-05-11 Thread rhubarbdog x
rhubarbdog x added the comment: I've just done a test and from a command shell (bash or whatever) the following python script when ran produces the following $ python3 command.py 0ne thwo three files: ['0ne', 'thwo', 'three'] sensors 1 freq 1200 $ python3 command.py -s 5 0ne thwo three

[issue36863] argparse doesn't like options in the middle of arguments

2019-05-09 Thread rhubarbdog x
rhubarbdog x added the comment: This is when running is a shell which inherits from cmd.Cmd -- ___ Python tracker <https://bugs.python.org/issue36863> ___ ___

[issue36863] argparse doesn't like options in the middle of arguments

2019-05-09 Thread rhubarbdog x
New submission from rhubarbdog x : I've found a bug with argparse and reported it upstream. `command --option source destination` works `command soucre destination --option` works but `command source --option destination` doesn't outputting the usage text block associated `do_command` method

[issue36259] exception text is being sourced from the wrong file

2019-03-10 Thread rhubarbdog x
New submission from rhubarbdog x : Hi i have a directory containing a directory `bug` and the python program `bad.py`. The code for `bad.py` is ``` import os os.chdir('bug') print(7/0) ``` directory `bug` contains a file `bad.py` this file contents are ``` test 1 test 2 test 3 test 4 test 5