aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gotext.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gotext.go b/src/gotext.go
index d2ef382..596d670 100644
--- a/src/gotext.go
+++ b/src/gotext.go
@@ -572,7 +572,7 @@ func Main() {
Init(Name, LOCALEDIR)
args, rc := getopt(os.Args, os.Stderr)
if rc != 0 {
- os.Exit(0)
+ os.Exit(rc)
}
os.Exit(run(envT{
args: args,