Only reset grammar when Apply()ing.
Also add a Kong.Help() function for writing context-sensitive help.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ func TestHelp(t *testing.T) {
|
||||
Name("test-app"),
|
||||
Description("A test app."),
|
||||
Writers(w, w),
|
||||
ExitFunction(func(int) {
|
||||
Exit(func(int) {
|
||||
exited = true
|
||||
panic(true) // Panic to fake "exit".
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user