An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
from click import command, option, Option, UsageError | |
class MutuallyExclusiveOption(Option): | |
mutex_groups = {} | |
def __init__(self, *args, **kwargs): | |
opts_list = kwargs.pop('mutex_group', "") | |
self.mutex_group_key = ','.join(opts_list) | |
self.mutex_groups[self.mutex_group_key] = 0 | |
help = kwargs.get('help', '') |