Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(756)

Issue 6500108: Use double dashes for bench options to be consistent. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by Leon
Modified:
11 years, 9 months ago
Reviewers:
EricB
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Use double dashes for bench options to be consistent. Breaks the bots, since the arguments being passed to bench have changed, but there is a change to fix it at https://codereview.appspot.com/6488114/ Committed: https://code.google.com/p/skia/source/detail?r=5513

Patch Set 1 #

Total comments: 6

Patch Set 2 : Single dash for single character flags. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -54 lines) Patch
M bench/benchmain.cpp View 1 8 chunks +54 lines, -54 lines 0 comments Download

Messages

Total messages: 4
Leon
11 years, 9 months ago (2012-09-11 19:46:13 UTC) #1
EricB
https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp#newcode351 bench/benchmain.cpp:351: SkDebugf("Usage: bench [--o outDir] [--repeat nr] [--logPerIter 1|0] " ...
11 years, 9 months ago (2012-09-11 20:00:47 UTC) #2
Leon
https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp File bench/benchmain.cpp (right): https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp#newcode351 bench/benchmain.cpp:351: SkDebugf("Usage: bench [--o outDir] [--repeat nr] [--logPerIter 1|0] " ...
11 years, 9 months ago (2012-09-11 20:11:10 UTC) #3
EricB
11 years, 9 months ago (2012-09-11 20:17:17 UTC) #4
On 2012/09/11 20:11:10, scroggo-work wrote:
> https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp
> File bench/benchmain.cpp (right):
> 
> https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp#newcode351
> bench/benchmain.cpp:351: SkDebugf("Usage: bench [--o outDir] [--repeat nr]
> [--logPerIter 1|0] "
> On 2012/09/11 20:00:47, EricB wrote:
> > I think the convention is '-' for single-letter arguments and '--' for
> multiple.
> >  This is how GM works.
> 
> Done.
> 
> https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp#newcode438
> bench/benchmain.cpp:438: if (strcmp(*argv, "--o") == 0) {
> On 2012/09/11 20:00:47, EricB wrote:
> > "-"
> 
> Done.
> 
> https://codereview.appspot.com/6500108/diff/1/bench/benchmain.cpp#newcode600
> bench/benchmain.cpp:600: } else if (strlen(*argv) > 2 && strncmp(*argv, "--D",
> 2) == 0) {
> On 2012/09/11 20:00:47, EricB wrote:
> > "-"
> 
> Done.

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b