aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-12 01:28:22 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-12 01:28:22 +0900
commitd2575b670835fd19f7a67e5eee476a46eb9822e5 (patch)
tree51bc1e930abd7ffbb4e27091ba1734eb7a8d7ef9 /main.go
parent8d82446d9771964ce3362beaeb63a2414489ca1e (diff)
fortify: move flag handling to separate files
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.go b/main.go
index c30bfcaf..45fbd216 100644
--- a/main.go
+++ b/main.go
@@ -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() {