diff options
| author | Jeff Carr <[email protected]> | 2025-10-16 09:51:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-16 09:51:42 -0500 |
| commit | d05afb455673a5397ecfa41f7ea36c75d0629566 (patch) | |
| tree | 47a02522cc9e49db4530f64c2de258b880ff7cc7 | |
| parent | 6a62be781be462c769bb1f61198ea584284e6bed (diff) | |
try this
| -rw-r--r-- | README.md | 13 | ||||
| -rw-r--r-- | exit.go | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..34d58f2 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +This is part of 'argv'. + +argv has goals for your application which are: + +* help give birth to your command +* then help it die with grace in the end + +prep currently provides: + +* bash autocompletion +* command history +* timing on exit +* watchdog on exit @@ -46,7 +46,7 @@ func (pb *Auto) BadExit(msg string, err error) { dur := time.Since(pb.Ctime.AsTime()) log.Infof("%s error: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur)) - os.Exit(-1) + os.Exit(1) } // this code doesn't need to be this complicated. I put it here as reference code for myself so I could remember where it is. |
