diff --git a/ddsc/cmdparser.py b/ddsc/cmdparser.py
index 4f381b6..4d6e9c0 100644
--- a/ddsc/cmdparser.py
+++ b/ddsc/cmdparser.py
@@ -271,7 +271,6 @@ class CommandParser(object):
         """
         description = "Gives user permission to access a remote project."
         add_user_parser = self.subparsers.add_parser('add-user', description=description)
-        self.subparsers.choices['add_user'] = add_user_parser
         add_project_name_arg(add_user_parser, help_text="Name of the project to add a user to.")
         user_or_email = add_user_parser.add_mutually_exclusive_group(required=True)
         add_user_arg(user_or_email)
@@ -286,7 +285,6 @@ class CommandParser(object):
         """
         description = "Removes user permission to access a remote project."
         remove_user_parser = self.subparsers.add_parser('remove-user', description=description)
-        self.subparsers.choices['remove_user'] = remove_user_parser
         add_project_name_arg(remove_user_parser, help_text="Name of the project to remove a user from.")
         user_or_email = remove_user_parser.add_mutually_exclusive_group(required=True)
         add_user_arg(user_or_email)

Remove duplicate commands in commandline.
There shouldn't be both add-user and add_user in the help.
diff --git a/ddsc/tests/test_cmdparser.py b/ddsc/tests/test_cmdparser.py
new file mode 100644
index 0000000..d1c4df7
--- /dev/null
+++ b/ddsc/tests/test_cmdparser.py
@@ -0,0 +1,19 @@
+from __future__ import absolute_import
+from unittest import TestCase
+from ddsc.cmdparser import CommandParser
+
+
+def no_op():
+    pass
+
+
+class TestCommandParser(TestCase):
+    def test_register_add_user_command(self):
+        command_parser = CommandParser()
+        command_parser.register_add_user_command(no_op)
+        self.assertEqual(['add-user'], list(command_parser.subparsers.choices.keys()))
+
+    def test_register_remove_user_command(self):
+        command_parser = CommandParser()
+        command_parser.register_remove_user_command(no_op)
+        self.assertEqual(['remove-user'], list(command_parser.subparsers.choices.keys()))

pip install -e .[dev]
parse_log_pytest
requirements.txt
mock flake8 pytest
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
-e git+https://github.com/Duke-GCB/DukeDSClient.git@fb617c41b09cfd859fc50b93308e3680e209069b#egg=DukeDSClient
exceptiongroup==1.2.2
flake8==5.0.4
future==0.16.0
importlib-metadata==4.2.0
iniconfig==2.0.0
mccabe==0.7.0
mock==5.2.0
packaging==24.0
pluggy==1.2.0
pycodestyle==2.9.1
pyflakes==2.5.0
pytest==7.4.4
PyYAML==3.12
requests==2.13.0
six==1.10.0
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.15.0

name: DukeDSClient
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - flake8==5.0.4
      - future==0.16.0
      - importlib-metadata==4.2.0
      - iniconfig==2.0.0
      - mccabe==0.7.0
      - mock==5.2.0
      - packaging==24.0
      - pluggy==1.2.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
      - pytest==7.4.4
      - pyyaml==3.12
      - requests==2.13.0
      - six==1.10.0
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/DukeDSClient

ddsc/tests/test_cmdparser.py::TestCommandParser::test_register_add_user_command ddsc/tests/test_cmdparser.py::TestCommandParser::test_register_remove_user_command
ddsc/cmdparser.py
ddsc/cmdparser.py