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

Issue 5564065: code review 5564065: flag: allow a FlagSet to not write to os.Stderr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by bradfitz
Modified:
12 years, 3 months ago
Reviewers:
CC:
golang-dev, gri, r, rog, r2
Visibility:
Public.

Description

flag: allow a FlagSet to not write to os.Stderr Fixes issue 2747

Patch Set 1 #

Patch Set 2 : diff -r 6c9ed13af587 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 6c9ed13af587 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 6c9ed13af587 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 5 : diff -r 6520188039c9 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -7 lines) Patch
M src/pkg/flag/flag.go View 1 2 3 4 7 chunks +23 lines, -7 lines 0 comments Download
M src/pkg/flag/flag_test.go View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 10
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-01-27 01:15:55 UTC) #1
gri
FYI. r should weigh in. http://codereview.appspot.com/5564065/diff/3001/src/pkg/flag/flag.go File src/pkg/flag/flag.go (right): http://codereview.appspot.com/5564065/diff/3001/src/pkg/flag/flag.go#newcode227 src/pkg/flag/flag.go:227: Output io.Writer I'd make ...
12 years, 3 months ago (2012-01-27 01:32:21 UTC) #2
bradfitz
FlagSet.Init refers to "the zero FlagSet", suggesting it's usable on its own, and shouldn't crash ...
12 years, 3 months ago (2012-01-27 01:37:16 UTC) #3
r
http://codereview.appspot.com/5564065/diff/3001/src/pkg/flag/flag.go File src/pkg/flag/flag.go (right): http://codereview.appspot.com/5564065/diff/3001/src/pkg/flag/flag.go#newcode227 src/pkg/flag/flag.go:227: Output io.Writer some of the above. the zero value ...
12 years, 3 months ago (2012-01-27 02:54:55 UTC) #4
rog
LGTM modulo rob's comments. no test? On 27 January 2012 02:54, <r@golang.org> wrote: > > ...
12 years, 3 months ago (2012-01-27 11:31:53 UTC) #5
r2
On Jan 26, 2012, at 5:37 PM, Brad Fitzpatrick wrote: > FlagSet.Init refers to "the ...
12 years, 3 months ago (2012-01-27 16:12:53 UTC) #6
bradfitz
Hello golang-dev@googlegroups.com, gri@golang.org, r@golang.org, rogpeppe@gmail.com, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-01-27 16:25:08 UTC) #7
bradfitz
All addressed, and added a test. On Fri, Jan 27, 2012 at 3:31 AM, roger ...
12 years, 3 months ago (2012-01-27 16:48:18 UTC) #8
r
LGTM http://codereview.appspot.com/5564065/diff/7001/src/pkg/flag/flag.go File src/pkg/flag/flag.go (right): http://codereview.appspot.com/5564065/diff/7001/src/pkg/flag/flag.go#newcode791 src/pkg/flag/flag.go:791: // SetOutput sets where usage and error messages ...
12 years, 3 months ago (2012-01-27 17:07:26 UTC) #9
bradfitz
12 years, 3 months ago (2012-01-27 17:23:09 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=5d72030a6c50 ***

flag: allow a FlagSet to not write to os.Stderr

Fixes issue 2747

R=golang-dev, gri, r, rogpeppe, r
CC=golang-dev
http://codereview.appspot.com/5564065
Sign in to reply to this message.

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