diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-12 01:28:22 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-12 01:28:22 +0900 |
| commit | d2575b670835fd19f7a67e5eee476a46eb9822e5 (patch) | |
| tree | 51bc1e930abd7ffbb4e27091ba1734eb7a8d7ef9 /main.go | |
| parent | 8d82446d9771964ce3362beaeb63a2414489ca1e (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.go | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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() { |
