Author shihai1991
Recipients bethard, eric.araujo, maker, martin.panter, paul.j3, r.david.murray, shihai1991
Date 2019-09-06.05:44:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567748695.83.0.663310134439.issue14364@roundup.psfhosted.org>
In-reply-to
Content
some test cases which paul provided looks doesn't keep compatible.

In TestDoubleDashRemoval:
# output in my env is Namespace(cmd='cmd', foo=None, rest=['--', '--foo'])
('-- cmd -- -- --foo', NS(cmd='cmd', foo=None, rest=['--', '--', '--foo']))

# output in my env is Namespace(cmd='--', foo='1', rest=['1', '2'])
('-f1 -- -- 1 -- 2', NS(cmd='--', foo='1', rest=['1', '--', '2']))

# output in my env is Namespace(cmd='--foo', foo=None, rest=['--bar', '2'])
('-- --foo -- --bar 2', NS(cmd='--foo', foo=None, rest=['--', '--bar', '2']))

# output in my env is Namespace(cmd='cmd', foo=None, rest=['--foo', '-f2'])
('cmd -- --foo -- -f2', NS(cmd='cmd', foo=None, rest=['--foo', '--', '-f2']))


In TestDoubleDashRemoval1:
# output in my env is Namespace(cmd='cmd', foo='1', rest=['-f2', '3'])
('-f1 -- cmd -- -f2 3', NS(cmd='cmd', foo='1', rest=['--', '-f2', '3']))

my python's version is: 2.7.5, 3.6.8
History
Date User Action Args
2019-09-06 05:44:55shihai1991setrecipients: + shihai1991, bethard, eric.araujo, r.david.murray, maker, martin.panter, paul.j3
2019-09-06 05:44:55shihai1991setmessageid: <1567748695.83.0.663310134439.issue14364@roundup.psfhosted.org>
2019-09-06 05:44:55shihai1991linkissue14364 messages
2019-09-06 05:44:55shihai1991create