Beispiel #1
0
// Test started when the test binary is started. Only calls main.
func TestSystem(t *testing.T) {
	args := append([]string{"cli53"}, flag.Args()...)
	exitCode := cli53.Main(args)
	if exitCode != 0 {
		t.Errorf("exit code: %d\n", exitCode)
	}
}
Beispiel #2
0
func main() {
	exitCode := cli53.Main(os.Args)
	os.Exit(exitCode)
}