'Command line argument processing'

def read_cli_args(self):

    parser = argparse.ArgumentParser(description='Produce    an    Ansible    Inventory    file    based    on    DigitalOcean    credentials')
    parser.add_argument('--list', action='store_true', help='List    all    active    Droplets    as    Ansible    inventory    (default:    True)')
    parser.add_argument('--host', action='store', help='Get    all    Ansible    inventory    variables    about    a    specific    Droplet')
    parser.add_argument('--all', action='store_true', help='List    all    DigitalOcean    information    as    JSON')
    parser.add_argument('--droplets', '-d', action='store_true', help='List    Droplets    as    JSON')
    parser.add_argument('--regions', action='store_true', help='List    Regions    as    JSON')
    parser.add_argument('--images', action='store_true', help='List    Images    as    JSON')
    parser.add_argument('--sizes', action='store_true', help='List    Sizes    as    JSON')
    parser.add_argument('--ssh-keys', action='store_true', help='List    SSH    keys    as    JSON')
    parser.add_argument('--domains', action='store_true', help='List    Domains    as    JSON')
    parser.add_argument('--pretty', '-p', action='store_true', help='Pretty-print    results')
    parser.add_argument('--cache-path', action='store', help='Path    to    the    cache    files    (default:    .)')
    parser.add_argument('--cache-max_age', action='store', help='Maximum    age    of    the    cached    items    (default:    0)')
    parser.add_argument('--force-cache', action='store_true', default=False, help='Only    use    data    from    the    cache')
    parser.add_argument('--refresh-cache', '-r', action='store_true', default=False, help='Force    refresh    of    cache    by    making    API    requests    to    DigitalOcean    (default:    False    -    use    cache    files)')
    parser.add_argument('--env', '-e', action='store_true', help='Display    DO_API_TOKEN')
    parser.add_argument('--api-token', '-a', action='store', help='DigitalOcean    API    Token')
    self.args = parser.parse_args()
    if self.args.api_token:
        self.api_token = self.args.api_token
    if ((not self.args.droplets) and (not self.args.regions) and (not self.args.images) and (not self.args.sizes) and (not self.args.ssh_keys) and (not self.args.domains) and (not self.args.all) and (not self.args.host)):
        self.args.list = True
