-
Notifications
You must be signed in to change notification settings - Fork 289
FAQ
Chris Lu edited this page Nov 3, 2018
·
1 revision
There could be many different reasons. The common ones:
- Avoid printing to stdout. Write to stderr via
println()
, orfmt.Fprintf(os.stderr, "...", ...)
. This is because gio.Emit() actually uses stdout to output data to stdin of the next step. - Use
flag
package, instead of usingos.Args
directly. Because Gleam invokes each executor viaflag
package. Multiple ways to parse arguments would cause confusion.