X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/3b7a3676dc3614ee3099e8798b5d0c07cb116b93..277a37a79b51910074a29ca6d70fae75c73619b7:/command_test.go diff --git a/command_test.go b/command_test.go index 3d89327..602424d 100644 --- a/command_test.go +++ b/command_test.go @@ -22,6 +22,12 @@ func TestHelpListsVersionCommand(t *testing.T) { 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()