diff --git a/cmd/argo/commands/archive/list_label_values.go b/cmd/argo/commands/archive/list_label_values.go index b62917a3b336..30c3f918b47b 100644 --- a/cmd/argo/commands/archive/list_label_values.go +++ b/cmd/argo/commands/archive/list_label_values.go @@ -18,6 +18,9 @@ func NewListLabelValueCommand() *cobra.Command { command := &cobra.Command{ Use: "list-label-values", Short: "get workflow label values in the archive", + Example: `# Get workflow label values in the archive: + argo archive list-label-values -l key1 +`, RunE: func(cmd *cobra.Command, args []string) error { listOpts := &metav1.ListOptions{ LabelSelector: selector, diff --git a/docs/cli/argo_archive_list-label-values.md b/docs/cli/argo_archive_list-label-values.md index a125ca64a271..c9bc0719365f 100644 --- a/docs/cli/argo_archive_list-label-values.md +++ b/docs/cli/argo_archive_list-label-values.md @@ -6,6 +6,13 @@ get workflow label values in the archive argo archive list-label-values [flags] ``` +### Examples + +``` +# Get workflow label values in the archive: + argo archive list-label-values -l key1 +``` + ### Options ```