Argocd app create - --app-namespace - when is it used?

Hi,

There are 2 flags related to namespaces, while creating an argocd application via cli.

argocd app create

-N, --app-namespace string                       Namespace where the application will be created in
--dest-namespace string                            K8s target namespace

When I use --app-namespace, it does not work and I get an error.
When I use --dest-namespace, it works.

Example:

argocd app create health-check-app --project default --sync-policy none --sync-option CreateNamespace=true --repo https://3000-port-13dfcbe061c440ad.labs.kodekloud.com/bob/gitops-argocd --path health-check --dest-server https://kubernetes.default.svc --dest-namespace health-check

So, when is --app-namespace used or what is it’s purpose?

As per description, --app-namespace is the namespace where the application will be created, however, if I use --dest-namespace, this is where the application gets created.