require.Contains(t, commandOutput(t, "help"), " version show the build version\n")
}
+func TestHelpListsTheImportTargetFlag(t *testing.T) {
+ help := commandOutput(t, "help")
+ require.Contains(t, help, "import [-n] [--agent NAME] ZIP...")
+ require.Contains(t, help, "--agent NAME import into an existing direct child (default: root)")
+}
+
+func TestHelpListsTheRootNotificationCommand(t *testing.T) {
+ require.Contains(t, commandOutput(t, "help"), "notify --source SOURCE --id ID --text TEXT")
+ require.Contains(t, commandOutput(t, "notify", "--help"), "not processed")
+}
+
func commandOutput(t *testing.T, args ...string) string {
t.Helper()