diff options
| author | Jeff Carr <[email protected]> | 2024-10-24 15:14:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-24 15:14:47 -0500 |
| commit | 63e750ce89e98fdc1fad7f1cb6a10c798cfc94b2 (patch) | |
| tree | a401f06364ed6d4e8b62fdf8d6db576b11df3dd8 /main.go | |
| parent | aa742d099d62697a8399ed5f8f46122710eef0e9 (diff) | |
cleanup help
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -24,9 +24,10 @@ func main() { fullpath := filepath.Join(homeDir, ".config/virtigo") os.Setenv("VIRTIGO_HOME", fullpath) } - pp := arg.MustParse(&argv) + var pp *arg.Parser + pp = arg.MustParse(&argv) - if !argv.Uptime { + if pp == nil { pp.WriteHelp(os.Stdout) os.Exit(0) } |
