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 commandOutput(t *testing.T, args ...string) string {
t.Helper()