We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
conda env config (or other inappropriate/incomplete commands) results in AttributeError(possibly related to argparse ?) 
<!--
Hi!  Read this; it's important.

This is an issue tracker for conda -- the package manager.  File feature requests
for conda here, as well as bug reports about something conda has messed up.

Anaconda Community Code of Conduct: https://www.anaconda.com/community-code-of-conduct/

If your issue is a bug report for:
  * a specific conda package from Anaconda ('defaults' channel):
      ==> file at https://github.com/ContinuumIO/anaconda-issues
  * a specific conda package from conda-forge:
      ==> file at the corresponding feedstock under https://github.com/conda-forge
  * repo.anaconda.com access and service:
      ==> file at https://github.com/ContinuumIO/anaconda-issues
  * anaconda.org access and service:
      ==> file at https://anaconda.org/contact/report
  * commands under 'conda build':
      ==> file at https://github.com/conda/conda-build
  * commands under 'conda env':
      ==> please file it here!
  * all other conda commands that start with 'conda':
      ==> please file it here!

If you continue on,

   **please include all requested information below.**

If a maintainer determines the information is required to understand 
your issue, and if it is not provided, your issue may be
closed automatically.

-->

## Current Behavior
<!-- What actually happens?
     If you want to include console output, please use "Steps to Reproduce" below. -->
```conda env config``` (or other options that are either incomplete or inappropriate,
such as ```conda env config vars```)
shows Error message including 
```
    Traceback (most recent call last):
      File "/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1078, in __call__
        return func(*args, **kwargs)
      File "/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda_env/cli/main.py", line 76, in do_call
        relative_mod, func_name = args.func.rsplit('.', 1)
    AttributeError: 'Namespace' object has no attribute 'func'
```
This seems to be related to argparse behavior?
(p.s. USERNAME is in place for the username currently used, and ROOTUSERNAME is the (main) root username. ANOTHERFOLDER is just another folder.)

### Steps to Reproduce
<!-- If the current behavior is a bug, please provide specific, minimal steps to independently reproduce.
     Include the exact conda commands that reproduce the issue and their output between the ticks below. -->
```
conda env config

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1078, in __call__
        return func(*args, **kwargs)
      File "/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda_env/cli/main.py", line 76, in do_call
        relative_mod, func_name = args.func.rsplit('.', 1)
    AttributeError: 'Namespace' object has no attribute 'func'

`$ /home/USERNAME/miniconda3/bin/conda-env config vars`

  environment variables:
                 CIO_TEST=<not set>
  CONDA_AUTO_UPDATE_CONDA=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/home/USERNAME/miniconda3/bin/conda
             CONDA_PREFIX=/home/USERNAME/miniconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/home/USERNAME/miniconda3/bin/python
               CONDA_ROOT=/home/USERNAME/miniconda3
              CONDA_SHLVL=1
                     PATH=/home/USERNAME/miniconda3/bin:/home/USERNAME/miniconda3/bin:/home/
                          USERNAME/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/
                          usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/
                          java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-
                          amd64/jre/bin:/home/ROOTUSERNAME/ANOTHERFOLDER/apache-maven-3.6.0/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /home/USERNAME/miniconda3
            shell level : 1
       user config file : /home/USERNAME/.condarc
 populated config files : /home/USERNAME/.condarc
          conda version : 4.8.1
    conda-build version : not installed
         python version : 3.7.6.final.0
       virtual packages : __cuda=10.1
                          __glibc=2.27
       base environment : /home/USERNAME/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/USERNAME/miniconda3/pkgs
                          /home/USERNAME/.conda/pkgs
       envs directories : /home/USERNAME/miniconda3/envs
                          /home/USERNAME/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.6 Linux/4.15.0-74-generic ubuntu/18.04.3 glibc/2.27
                UID:GID : 1010:1010
             netrc file : None
           offline mode : False
```


## Expected Behavior
<!-- What do you think should happen? -->
show error message or --help option equivalent output

## Environment Information
<details open><summary><code>`conda info`</code></summary><p>
<!-- between the ticks below, paste the output of 'conda info' -->

```
     active environment : base
    active env location : /home/USERNAME/miniconda3
            shell level : 1
       user config file : /home/USERNAME/.condarc
 populated config files : /home/USERNAME/.condarc
          conda version : 4.8.1
    conda-build version : not installed
         python version : 3.7.6.final.0
       virtual packages : __cuda=10.1
                          __glibc=2.27
       base environment : /home/USERNAME/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/USERNAME/miniconda3/pkgs
                          /home/USERNAME/.conda/pkgs
       envs directories : /home/USERNAME/miniconda3/envs
                          /home/USERNAME/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.6 Linux/4.15.0-74-generic ubuntu/18.04.3 glibc/2.27
                UID:GID : 1010:1010
             netrc file : None
           offline mode : False
```
</p></details>


<details open><summary><code>`conda config --show-sources`</code></summary><p>
<!-- between the ticks below, paste the output of 'conda config --show-sources' -->

```
==> /home/USERNAME/.condarc <==
channels:
  - defaults
```
</p></details>


<details><summary><code>`conda list --show-channel-urls`</code></summary><p>
<!-- between the ticks below, paste the output of 'conda list --show-channel-urls' -->

```
# packages in environment at /home/USERNAME/miniconda3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    defaults
asn1crypto                1.3.0                    py37_0    defaults
ca-certificates           2019.11.27                    0    defaults
certifi                   2019.11.28               py37_0    defaults
cffi                      1.13.2           py37h2e261b9_0    defaults
chardet                   3.0.4                 py37_1003    defaults
conda                     4.8.1                    py37_0    defaults
conda-package-handling    1.6.0            py37h7b6447c_0    defaults
cryptography              2.8              py37h1ba5d50_0    defaults
idna                      2.8                      py37_0    defaults
ld_impl_linux-64          2.33.1               h53a641e_7    defaults
libedit                   3.1.20181209         hc058e9b_0    defaults
libffi                    3.2.1                hd88cf55_4    defaults
libgcc-ng                 9.1.0                hdf63c60_0    defaults
libstdcxx-ng              9.1.0                hdf63c60_0    defaults
ncurses                   6.1                  he6710b0_1    defaults
openssl                   1.1.1d               h7b6447c_3    defaults
pip                       19.3.1                   py37_0    defaults
pycosat                   0.6.3            py37h7b6447c_0    defaults
pycparser                 2.19                     py37_0    defaults
pyopenssl                 19.1.0                   py37_0    defaults
pysocks                   1.7.1                    py37_0    defaults
python                    3.7.6                h0371630_2    defaults
readline                  7.0                  h7b6447c_5    defaults
requests                  2.22.0                   py37_1    defaults
ruamel_yaml               0.15.87          py37h7b6447c_0    defaults
setuptools                44.0.0                   py37_0    defaults
six                       1.13.0                   py37_0    defaults
sqlite                    3.30.1               h7b6447c_0    defaults
tk                        8.6.8                hbc83047_0    defaults
tqdm                      4.41.1                     py_0    defaults
urllib3                   1.25.7                   py37_0    defaults
wheel                     0.33.6                   py37_0    defaults
xz                        5.2.4                h14c3975_4    defaults
yaml                      0.1.7                had09818_2    defaults
zlib                      1.2.11               h7b6447c_3    defaults
```
</p></details>


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `conda_env/cli/main_config.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2012 Anaconda, Inc
3 # SPDX-License-Identifier: BSD-3-Clause
4 from argparse import RawDescriptionHelpFormatter
5 
6 
7 from .main_vars import configure_parser as configure_vars_parser
8 
9 config_description = '''
10 Configure a conda environment
11 '''
12 
13 config_example = '''
14 examples:
15     conda env config vars list
16     conda env config --append channels conda-forge
17 '''
18 
19 def configure_parser(sub_parsers):
20     config_parser = sub_parsers.add_parser(
21         'config',
22         formatter_class=RawDescriptionHelpFormatter,
23         description=config_description,
24         help=config_description,
25         epilog=config_example,
26     )
27     config_subparser = config_parser.add_subparsers()
28     configure_vars_parser(config_subparser)
29
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/conda_env/cli/main_config.py b/conda_env/cli/main_config.py
--- a/conda_env/cli/main_config.py
+++ b/conda_env/cli/main_config.py
@@ -24,5 +24,10 @@
         help=config_description,
         epilog=config_example,
     )
+    config_parser.set_defaults(func='.main_config.execute')
     config_subparser = config_parser.add_subparsers()
     configure_vars_parser(config_subparser)
+
+
+def execute(args, parser):
+    parser.parse_args(['config', '--help'])

{"golden_diff": "diff --git a/conda_env/cli/main_config.py b/conda_env/cli/main_config.py\n--- a/conda_env/cli/main_config.py\n+++ b/conda_env/cli/main_config.py\n@@ -24,5 +24,10 @@\n         help=config_description,\n         epilog=config_example,\n     )\n+    config_parser.set_defaults(func='.main_config.execute')\n     config_subparser = config_parser.add_subparsers()\n     configure_vars_parser(config_subparser)\n+\n+\n+def execute(args, parser):\n+    parser.parse_args(['config', '--help'])\n", "issue": "conda env config (or other inappropriate/incomplete commands) results in AttributeError(possibly related to argparse ?) \n<!--\r\nHi!  Read this; it's important.\r\n\r\nThis is an issue tracker for conda -- the package manager.  File feature requests\r\nfor conda here, as well as bug reports about something conda has messed up.\r\n\r\nAnaconda Community Code of Conduct: https://www.anaconda.com/community-code-of-conduct/\r\n\r\nIf your issue is a bug report for:\r\n  * a specific conda package from Anaconda ('defaults' channel):\r\n      ==> file at https://github.com/ContinuumIO/anaconda-issues\r\n  * a specific conda package from conda-forge:\r\n      ==> file at the corresponding feedstock under https://github.com/conda-forge\r\n  * repo.anaconda.com access and service:\r\n      ==> file at https://github.com/ContinuumIO/anaconda-issues\r\n  * anaconda.org access and service:\r\n      ==> file at https://anaconda.org/contact/report\r\n  * commands under 'conda build':\r\n      ==> file at https://github.com/conda/conda-build\r\n  * commands under 'conda env':\r\n      ==> please file it here!\r\n  * all other conda commands that start with 'conda':\r\n      ==> please file it here!\r\n\r\nIf you continue on,\r\n\r\n   **please include all requested information below.**\r\n\r\nIf a maintainer determines the information is required to understand \r\nyour issue, and if it is not provided, your issue may be\r\nclosed automatically.\r\n\r\n-->\r\n\r\n## Current Behavior\r\n<!-- What actually happens?\r\n     If you want to include console output, please use \"Steps to Reproduce\" below. -->\r\n```conda env config``` (or other options that are either incomplete or inappropriate,\r\nsuch as ```conda env config vars```)\r\nshows Error message including \r\n```\r\n    Traceback (most recent call last):\r\n      File \"/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda/exceptions.py\", line 1078, in __call__\r\n        return func(*args, **kwargs)\r\n      File \"/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda_env/cli/main.py\", line 76, in do_call\r\n        relative_mod, func_name = args.func.rsplit('.', 1)\r\n    AttributeError: 'Namespace' object has no attribute 'func'\r\n```\r\nThis seems to be related to argparse behavior?\r\n(p.s. USERNAME is in place for the username currently used, and ROOTUSERNAME is the (main) root username. ANOTHERFOLDER is just another folder.)\r\n\r\n### Steps to Reproduce\r\n<!-- If the current behavior is a bug, please provide specific, minimal steps to independently reproduce.\r\n     Include the exact conda commands that reproduce the issue and their output between the ticks below. -->\r\n```\r\nconda env config\r\n\r\n# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda/exceptions.py\", line 1078, in __call__\r\n        return func(*args, **kwargs)\r\n      File \"/home/USERNAME/miniconda3/lib/python3.7/site-packages/conda_env/cli/main.py\", line 76, in do_call\r\n        relative_mod, func_name = args.func.rsplit('.', 1)\r\n    AttributeError: 'Namespace' object has no attribute 'func'\r\n\r\n`$ /home/USERNAME/miniconda3/bin/conda-env config vars`\r\n\r\n  environment variables:\r\n                 CIO_TEST=<not set>\r\n  CONDA_AUTO_UPDATE_CONDA=false\r\n        CONDA_DEFAULT_ENV=base\r\n                CONDA_EXE=/home/USERNAME/miniconda3/bin/conda\r\n             CONDA_PREFIX=/home/USERNAME/miniconda3\r\n    CONDA_PROMPT_MODIFIER=(base)\r\n         CONDA_PYTHON_EXE=/home/USERNAME/miniconda3/bin/python\r\n               CONDA_ROOT=/home/USERNAME/miniconda3\r\n              CONDA_SHLVL=1\r\n                     PATH=/home/USERNAME/miniconda3/bin:/home/USERNAME/miniconda3/bin:/home/\r\n                          USERNAME/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/\r\n                          usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/\r\n                          java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-\r\n                          amd64/jre/bin:/home/ROOTUSERNAME/ANOTHERFOLDER/apache-maven-3.6.0/bin\r\n       REQUESTS_CA_BUNDLE=<not set>\r\n            SSL_CERT_FILE=<not set>\r\n\r\n     active environment : base\r\n    active env location : /home/USERNAME/miniconda3\r\n            shell level : 1\r\n       user config file : /home/USERNAME/.condarc\r\n populated config files : /home/USERNAME/.condarc\r\n          conda version : 4.8.1\r\n    conda-build version : not installed\r\n         python version : 3.7.6.final.0\r\n       virtual packages : __cuda=10.1\r\n                          __glibc=2.27\r\n       base environment : /home/USERNAME/miniconda3  (writable)\r\n           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64\r\n                          https://repo.anaconda.com/pkgs/main/noarch\r\n                          https://repo.anaconda.com/pkgs/r/linux-64\r\n                          https://repo.anaconda.com/pkgs/r/noarch\r\n          package cache : /home/USERNAME/miniconda3/pkgs\r\n                          /home/USERNAME/.conda/pkgs\r\n       envs directories : /home/USERNAME/miniconda3/envs\r\n                          /home/USERNAME/.conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.6 Linux/4.15.0-74-generic ubuntu/18.04.3 glibc/2.27\r\n                UID:GID : 1010:1010\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n\r\n\r\n## Expected Behavior\r\n<!-- What do you think should happen? -->\r\nshow error message or --help option equivalent output\r\n\r\n## Environment Information\r\n<details open><summary><code>`conda info`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda info' -->\r\n\r\n```\r\n     active environment : base\r\n    active env location : /home/USERNAME/miniconda3\r\n            shell level : 1\r\n       user config file : /home/USERNAME/.condarc\r\n populated config files : /home/USERNAME/.condarc\r\n          conda version : 4.8.1\r\n    conda-build version : not installed\r\n         python version : 3.7.6.final.0\r\n       virtual packages : __cuda=10.1\r\n                          __glibc=2.27\r\n       base environment : /home/USERNAME/miniconda3  (writable)\r\n           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64\r\n                          https://repo.anaconda.com/pkgs/main/noarch\r\n                          https://repo.anaconda.com/pkgs/r/linux-64\r\n                          https://repo.anaconda.com/pkgs/r/noarch\r\n          package cache : /home/USERNAME/miniconda3/pkgs\r\n                          /home/USERNAME/.conda/pkgs\r\n       envs directories : /home/USERNAME/miniconda3/envs\r\n                          /home/USERNAME/.conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.6 Linux/4.15.0-74-generic ubuntu/18.04.3 glibc/2.27\r\n                UID:GID : 1010:1010\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n</p></details>\r\n\r\n\r\n<details open><summary><code>`conda config --show-sources`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda config --show-sources' -->\r\n\r\n```\r\n==> /home/USERNAME/.condarc <==\r\nchannels:\r\n  - defaults\r\n```\r\n</p></details>\r\n\r\n\r\n<details><summary><code>`conda list --show-channel-urls`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda list --show-channel-urls' -->\r\n\r\n```\r\n# packages in environment at /home/USERNAME/miniconda3:\r\n#\r\n# Name                    Version                   Build  Channel\r\n_libgcc_mutex             0.1                        main    defaults\r\nasn1crypto                1.3.0                    py37_0    defaults\r\nca-certificates           2019.11.27                    0    defaults\r\ncertifi                   2019.11.28               py37_0    defaults\r\ncffi                      1.13.2           py37h2e261b9_0    defaults\r\nchardet                   3.0.4                 py37_1003    defaults\r\nconda                     4.8.1                    py37_0    defaults\r\nconda-package-handling    1.6.0            py37h7b6447c_0    defaults\r\ncryptography              2.8              py37h1ba5d50_0    defaults\r\nidna                      2.8                      py37_0    defaults\r\nld_impl_linux-64          2.33.1               h53a641e_7    defaults\r\nlibedit                   3.1.20181209         hc058e9b_0    defaults\r\nlibffi                    3.2.1                hd88cf55_4    defaults\r\nlibgcc-ng                 9.1.0                hdf63c60_0    defaults\r\nlibstdcxx-ng              9.1.0                hdf63c60_0    defaults\r\nncurses                   6.1                  he6710b0_1    defaults\r\nopenssl                   1.1.1d               h7b6447c_3    defaults\r\npip                       19.3.1                   py37_0    defaults\r\npycosat                   0.6.3            py37h7b6447c_0    defaults\r\npycparser                 2.19                     py37_0    defaults\r\npyopenssl                 19.1.0                   py37_0    defaults\r\npysocks                   1.7.1                    py37_0    defaults\r\npython                    3.7.6                h0371630_2    defaults\r\nreadline                  7.0                  h7b6447c_5    defaults\r\nrequests                  2.22.0                   py37_1    defaults\r\nruamel_yaml               0.15.87          py37h7b6447c_0    defaults\r\nsetuptools                44.0.0                   py37_0    defaults\r\nsix                       1.13.0                   py37_0    defaults\r\nsqlite                    3.30.1               h7b6447c_0    defaults\r\ntk                        8.6.8                hbc83047_0    defaults\r\ntqdm                      4.41.1                     py_0    defaults\r\nurllib3                   1.25.7                   py37_0    defaults\r\nwheel                     0.33.6                   py37_0    defaults\r\nxz                        5.2.4                h14c3975_4    defaults\r\nyaml                      0.1.7                had09818_2    defaults\r\nzlib                      1.2.11               h7b6447c_3    defaults\r\n```\r\n</p></details>\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom argparse import RawDescriptionHelpFormatter\n\n\nfrom .main_vars import configure_parser as configure_vars_parser\n\nconfig_description = '''\nConfigure a conda environment\n'''\n\nconfig_example = '''\nexamples:\n    conda env config vars list\n    conda env config --append channels conda-forge\n'''\n\ndef configure_parser(sub_parsers):\n    config_parser = sub_parsers.add_parser(\n        'config',\n        formatter_class=RawDescriptionHelpFormatter,\n        description=config_description,\n        help=config_description,\n        epilog=config_example,\n    )\n    config_subparser = config_parser.add_subparsers()\n    configure_vars_parser(config_subparser)\n", "path": "conda_env/cli/main_config.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2012 Anaconda, Inc\n# SPDX-License-Identifier: BSD-3-Clause\nfrom argparse import RawDescriptionHelpFormatter\n\n\nfrom .main_vars import configure_parser as configure_vars_parser\n\nconfig_description = '''\nConfigure a conda environment\n'''\n\nconfig_example = '''\nexamples:\n    conda env config vars list\n    conda env config --append channels conda-forge\n'''\n\ndef configure_parser(sub_parsers):\n    config_parser = sub_parsers.add_parser(\n        'config',\n        formatter_class=RawDescriptionHelpFormatter,\n        description=config_description,\n        help=config_description,\n        epilog=config_example,\n    )\n    config_parser.set_defaults(func='.main_config.execute')\n    config_subparser = config_parser.add_subparsers()\n    configure_vars_parser(config_subparser)\n\n\ndef execute(args, parser):\n    parser.parse_args(['config', '--help'])\n", "path": "conda_env/cli/main_config.py"}]}