fortify: move flag handling to separate files

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-10-12 01:28:22 +09:00
parent 8d82446d97
commit d2575b6708
3 changed files with 30 additions and 14 deletions

View File

@@ -16,14 +16,11 @@ import (
)
var (
Version = "impure"
flagVerbose bool
)
func tryVersion() {
if printVersion {
fmt.Println(Version)
os.Exit(0)
}
func init() {
flag.BoolVar(&flagVerbose, "v", false, "Verbose output")
}
func main() {