summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8745d13..ab09067 100644
--- a/main.go
+++ b/main.go
@@ -20,6 +20,7 @@ var DATE string
//go:embed resources/*
var resources embed.FS
+var ARGNAME string = "go-deb"
var argv args
func main() {
@@ -28,6 +29,15 @@ func main() {
gui.InitArg()
arg.MustParse(&argv)
+ if argv.Bash {
+ fhelp.DoBash(ARGNAME)
+ os.Exit(0)
+ }
+ if len(argv.BashAuto) != 0 {
+ argv.doBashAuto()
+ os.Exit(0)
+ }
+
if err := fhelp.ConfigureENV(); err != nil {
badExit(err)
}