[Pidgin] #10182: "--config" option with "-" in folder name causes error messages

Pidgin trac at pidgin.im
Thu Sep 3 09:11:29 EDT 2009


#10182: "--config" option with "-" in folder name causes error messages
--------------------------+-------------------------------------------------
 Reporter:  darkfoxprime  |        Owner:  datallah       
     Type:  defect        |       Status:  new            
Milestone:                |    Component:  winpidgin (gtk)
  Version:  2.6.1         |   Resolution:                 
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by datallah):

 Technically, the current code doesn't even cover all possibilities - the
 way that getopt works, it is valid to use `-dh` or vice versa to specify
 both parameters.

 I don't disagree that the behavior you've noticed is suboptimal, but
 without parsing all the parameters in practically the same way that getopt
 is going to I don't think it is possible to get fully right.

 Your example code will also trigger the same behavior with something like
 `--config=c:\blah\blah-h`

 I certainly would be willing to consider a patch that would improve the
 situation, but not one that re-implemented getopt.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/10182#comment:4>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list