[metrics-bugs] #34316 [Metrics/Onionperf]: Make -o/-i arguments mutually exclusive

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jun 4 14:47:46 UTC 2020


#34316: Make -o/-i arguments mutually exclusive
-------------------------------+------------------------------
 Reporter:  karsten            |          Owner:  karsten
     Type:  defect             |         Status:  needs_review
 Priority:  Medium             |      Milestone:
Component:  Metrics/Onionperf  |        Version:
 Severity:  Normal             |     Resolution:
 Keywords:                     |  Actual Points:
Parent ID:                     |         Points:  0.2
 Reviewer:                     |        Sponsor:  Sponsor59
-------------------------------+------------------------------

Comment (by acute):

 TIL about `add_mutually_exclusive_group()` in `argparse`, thanks! This
 works nicely and the code reads well, setting to merge_ready.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/34316#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list