]> Cypherpunks.ru repositories - gostls13.git/commit
flag: document that custom usage functions are free to call os.Exit
authorRob Pike <r@golang.org>
Tue, 29 Aug 2017 03:46:38 +0000 (13:46 +1000)
committerRob Pike <r@golang.org>
Tue, 29 Aug 2017 20:26:24 +0000 (20:26 +0000)
commit305fd9179d2199cd1bb64402405857d2f2d02478
tree3b5ca1c32681e1780e9277113a15b5bcd63fde77
parent931c43328a27ef763a6b0bacf9d5d55cd2c1a1b8
flag: document that custom usage functions are free to call os.Exit

Some custom usage functions call it for clarity; others rely on the default
behavior, which makes an explicit call redundant. Document that it's
safe to be explicit.

Fixes #21671.

Change-Id: I08e9f47265582821cfd35995dff0c589cd85809d
Reviewed-on: https://go-review.googlesource.com/59792
Reviewed-by: Dominik Honnef <dominik@honnef.co>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/flag/flag.go