[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #12679 [Flashproxy]: flashproxy programs don't allow intermixed positional and optional arguments



#12679: flashproxy programs don't allow intermixed positional and optional
arguments
------------------------+---------------------
 Reporter:  dcf         |          Owner:  dcf
     Type:  defect      |         Status:  new
 Priority:  minor       |      Milestone:
Component:  Flashproxy  |        Version:
 Keywords:              |  Actual Points:
Parent ID:              |         Points:
------------------------+---------------------
 Since #9975
 ([https://gitweb.torproject.org/flashproxy.git/commitdiff/6108ddf5003f5ab85de7d91e701231432fa148bc
 merge of argparse]), it's an error if you put an optional argument between
 positional arguments.
 {{{
 works:        flashproxy-client --external :0 :0
 works:        flashproxy-client :0 :0 --external
 doesn't work: flashproxy-client :0 --external :0
 }}}
 The error you get is:
 {{{
 $ ./flashproxy-client :0 --external :0
 usage: flashproxy-client --register [OPTIONS] [LOCAL][:PORT]
 [REMOTE][:PORT]
 flashproxy-client: error: unrecognized arguments: :0
 }}}
 How it used to look is:
 {{{
 $ ./flashproxy-client :0 --external :0
 2014-07-22 09:10:54 Listening remote on 0.0.0.0:43803.
 2014-07-22 09:10:54 Listening remote on [::]:45211.
 2014-07-22 09:10:54 Listening local on 127.0.0.1:60759.
 2014-07-22 09:10:54 Listening local on [::1]:33344.
 }}}
 I'm calling it minor because probably most people don't try to do this.

 The analogous ticket for fog is #10004.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12679>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs