diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index 2218eb2163a54..2f997a9e91472 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -776,8 +776,6 @@ func NewApplicationSetCommand(clientOpts *argocdclient.ClientOptions) *cobra.Com } } - // sourcePosition startes with 1, thus, it needs to be decreased by 1 to find the correct index in the list of sources - sourcePosition = sourcePosition - 1 visited := cmdutil.SetAppSpecOptions(c.Flags(), &app.Spec, &appOpts, sourcePosition) if visited == 0 { log.Error("Please set at least one option to update")