From a7d8851de02e2fd12a0805cb5a6fc4c946d045c0 Mon Sep 17 00:00:00 2001 From: sammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 1 May 2021 01:50:22 -0400 Subject: [PATCH] fix: make -i false by default and fix cmdflag comparing --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7551895..f79fdc4 100644 --- a/main.go +++ b/main.go @@ -46,12 +46,13 @@ func main() { // loginshflag // TODO: issue #37 _ = getopt.BoolLong("login", 'l', "Makes Hilbish act like a login shell") - interactiveflag := getopt.BoolLong("interactive", 'i', "Force Hilbish to be an interactive shell") + _ = getopt.BoolLong("interactive", 'i', "Force Hilbish to be an interactive shell") getopt.Parse() args := getopt.Args() + interactiveflag := getopt.Lookup('i').Seen() - if *cmdflag != "" || *interactiveflag { + if *cmdflag == "" || interactiveflag { interactive = true }