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