aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gistatic.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gistatic.go b/src/gistatic.go
index 14954fc..d326162 100644
--- a/src/gistatic.go
+++ b/src/gistatic.go
@@ -70,8 +70,6 @@ func run(args argsT, stdin io.Reader, stdout io.Writer, stderr io.Writer) int {
func Main() {
g.Init()
args, rc := getopt(os.Args, os.Stderr)
- if rc != 0 {
- os.Exit(rc)
- }
+ g.ExitIf(rc)
os.Exit(run(args, os.Stdin, os.Stdout, os.Stderr))
}