bzrlib.option should allow an option that allows argument starting with dash (-)

Bug #591657 reported by Parth Malwankar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned
bzr-grep
Confirmed
Wishlist
Unassigned

Bug Description

This came up as a bug #591233 against bzr-grep.

<lifeless> it will parse it as option 'b' with param 'lah' and no parameters given to 'e'
<parthm> lifeless: yes. thats what i got when i tried it.
<lifeless> Thats what I'd expect to happen; I don't think this is really a bug is it? just escape the - - -e "\\-blah"
<parthm> lifeless: yes. thats the workaround i suggested in the bug. but posix grep supports -e ... so i suppose people used to posix grep would try that first.
<parthm> so its not critical, but nice to have.
<lifeless> so, if you find a way to add this to bzr core
<lifeless> I'd like to suggest that it be made obvious in two places
<lifeless> the docstrings for any objects that will sometimes-handle-leading-dash-and-sometimes-not
<lifeless> and the help for commands that use such options - automatically in the this second case

Parth Malwankar (parthm)
Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Parth Malwankar (parthm)
Changed in bzr-grep:
status: New → Confirmed
importance: Undecided → Wishlist
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.