[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #27916 [Core Tor/sbws]: Don't print default values for arguments twice
#27916: Don't print default values for arguments twice
-------------------------------+--------------------
Reporter: pastly | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/sbws | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-------------------------------+--------------------
{{{
$ sbws generate -h
[... snip ...]
-m TORFLOW_BW_MARGIN, --torflow-bw-margin TORFLOW_BW_MARGIN
Cap maximum bw when scaling as Torflow. (Default:
0.05) (default: 0.05)
-r TORFLOW_ROUND_DIGS, --torflow-round-digs TORFLOW_ROUND_DIGS
Number of most significant digits to round bw when
scaling as Torflow. (Default: 3) (default: 3)
-p SECS_RECENT, --secs-recent SECS_RECENT
How many secs in the past are results being still
considered. Note this value will supersede
data_period
in the configuration. (Default: None) (default:
None)
-a SECS_AWAY, --secs-away SECS_AWAY
How many secs results have to be away from each
other.
(Default: 86400 - one day -) (default: 86400)
-n MIN_NUM, --min-num MIN_NUM
Mininum number of a results to consider
them.(Default:
2) (default: 2)
}}}
The argument parsers are ArgumentDefaultsHelpFormatter types, so the
defaults are printed ... by default. No need to add them to the help
strings.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27916>
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