wow --help my beloved is here

This commit is contained in:
echo 2022-12-25 09:37:48 +03:30
parent c83c02f4f1
commit 812d977fcc
4 changed files with 22 additions and 7 deletions

View file

@ -18,6 +18,7 @@ var Forceddistro string
var Defaultconf bool = false
var Defaultcolor bool = false
var colorold bool = false
var Ishelp bool = false
func Gethn() string {
cmd := exec.Command("whoami")
@ -50,8 +51,10 @@ func Initargs() {
Defaultcolor = true
case "--16color":
colorold = true
case "--help":
Ishelp = true
default:
print("unknown argument: ", argument, "\n")
print("unknown argument: ", argument, ". please run --help for help\n")
os.Exit(0)
}
}