wow --help my beloved is here
This commit is contained in:
parent
c83c02f4f1
commit
812d977fcc
4 changed files with 22 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue