diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-02 21:25:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-02 21:25:28 -0400 |
| commit | f17078032462c6d9f2649cbae134df736478c001 (patch) | |
| tree | 022684d4e3d6ac5a58554bbed876f320e0da4982 /init.go | |
| parent | 74c851754c52adf74e611bc1533c8eb481439d84 (diff) | |
Resolved command-line handling in the GTK+ backend by not doing it and documenting that we don't do it.
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -10,6 +10,9 @@ package ui // It is not safe to call ui.Go() in a goroutine. It must be called directly from main(). // // This model is undesirable, but Cocoa limitations require it. +// +// Go does not process the command line for flags (that is, it does not call flag.Parse()), nor does package ui add any of the underlying toolkit's supported command-line flags. +// If you must, and if the toolkit also has environment variable equivalents to these flags (for instance, GTK+), use those instead. func Go(main func()) error { return ui(main) } |
