Opened 6 years ago

Closed 2 years ago

#12679 closed defect (wontfix)

flashproxy programs don't allow intermixed positional and optional arguments

Reported by: dcf Owned by: dcf
Priority: Low Milestone:
Component: Archived/Flashproxy Version:
Severity: Normal Keywords: archived-closed-2018-07-04
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Since #9975 (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
2014-07-22 09:10:54 Listening remote on [::]:45211.
2014-07-22 09:10:54 Listening local on
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.

Child Tickets

Change History (2)

comment:1 Changed 3 years ago by teor

Severity: Normal

Set all open tickets without a severity to "Normal"

comment:2 Changed 2 years ago by teor

Keywords: archived-closed-2018-07-04 added
Resolution: wontfix
Status: newclosed

Close all tickets in archived components

Note: See TracTickets for help on using tickets.