Dan Buch
df5c6caa96
Back out the testify/assert addition 😅
7 years ago
Dan Buch
47a412375f
Resolved compile-time errors since merging from v1
7 years ago
Dan Buch
a61867e5e6
Merge remote-tracking branch 'origin/v1' into merging-from-v1
7 years ago
Jesse Szwedko
9e5b04886c
Remove logic that exited even if the error was not an OsExiter
...
This was introduced in #496 , but was discovered to be a regression in
the behavior of the library.
8 years ago
HIROSE Masaaki
adec15acf5
Add another ExitCoder to assert that it uses last one
8 years ago
HIROSE Masaaki
71ced406af
Treat `rc` first called as exit code
...
Because default OsExiter is os.Exit.
8 years ago
mh-cbon
b0a8f25773
558: handle multi formatter errors
8 years ago
mh-cbon
79591889a9
Close #558 : detect FormattedError and print their stack trace
8 years ago
Dan Buch
81c242dda6
Merge remote-tracking branch 'origin/master' into merging-from-v1
8 years ago
Dan Buch
e9688813e4
Refine error handling behavior
...
so that exit 1 happens as long as error is non-nil
8 years ago
Dan Buch
dd253d122c
Write err to stderr, exit 1 if err != ""
...
Closes #475
8 years ago
Dan Buch
3d75e9e711
Go with interfaces + private opaque types
...
rather than public types that wrap slices
8 years ago
Dan Buch
cc481d6b0e
Adjust command hiding to use similar convention as hidden flags
...
plus breaking out "setup" portion of `App.Run` into its own method, cleaning up
some bits of the help templates, and allowing for runtime opt-in of displaying
template errors to stderr.
9 years ago
Dan Buch
4b4c07bd4f
Ensure HandleAction/HandleExitCoder work correctly with *ExitError
...
Closes #376
9 years ago