Branch: refs/heads/master
Home: https://github.com/conformal/btcgui
Commit: 99bf1e93c0303e2aac7f1ff72824cb5e1bc499c5
https://github.com/conformal/btcgui/commit/99bf1e93c0303e2aac7f1ff72824cb5e1bc499c5
Author: Josh Rickmar <[email protected]>
Date: 2014-01-10 (Fri, 10 Jan 2014)
Changed paths:
M main.go
Log Message:
-----------
Implement correct config/flag parsing for a GUI.
For a GUI, any command line flags should only be shown in an error
dialog if there was an actual error during the config or flag parsing.
go-flags treats help (-h) as an error, and entire help usage was being
printed to the pre-GUI error dialog. This change fixes this behavior
to only show parsing errors and not help usage to the dialog.
Both help usage and error parsing remains printed to os.Stderr.