title: How to select an argument + argument choice and use both options together in a statement
body: <p>Working with this argument:</p>
  
  <pre><code>def get_args(arglist):
      parser = argparse.ArgumentParser(
          formatter_class=argparse.RawDescriptionHelpFormatter,
          description=textwrap.dedent('''
             text '''))
      parser.add_argument('--add',
                      default='',
                      nargs='?',
                      choices=['user', 'database'],
                      help='Add user or database (default: %(default)s)')
  
      args = parser.parse_args(arglist) # Passing argument list into parse
      args_dict = vars(args)  # Dictionary for args
      return args, args_dict  # Return the parsed arguments
  </code></pre>
  
  <p>I need to perform logic that will read which <code>choice</code> was made and go down a path of if statements based on that choice.</p>
  
  <p>Here is basically what I'm trying to do:</p>
  
  <pre><code>if args.add+args.user:
      print(f"do something to add user {args.add}")
  if args.add+args.database:
      print(f"do something to add database {args.add}")
  </code></pre>
  
  <p>I want this CLI script to know what the user is trying to add (for now, a <code>user</code> or a <code>database</code>).</p>
  
  <p>The end goal is that the user will enter <code>./myscript.py --add user USERNAME</code> to add a user.</p>