36 lines
556 B
Go
36 lines
556 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
var args []string
|
|
var shoulduwuify bool = true
|
|
var noascii bool = false
|
|
|
|
func Initargs() {
|
|
args = os.Args[1:]
|
|
for _, argument := range args {
|
|
if strings.HasPrefix(argument, "--") {
|
|
switch argument {
|
|
case "--nouwu":
|
|
shoulduwuify = false
|
|
case "--noascii":
|
|
noascii = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func Woulduwuify() bool {
|
|
return shoulduwuify
|
|
}
|
|
func Asciioverwrite(ascii []string) []string {
|
|
if noascii {
|
|
literallynothing := []string{"", ""}
|
|
return (literallynothing)
|
|
} else {
|
|
return ascii
|
|
}
|
|
}
|