@rest_initialiser(version_check=True)
def execute(self, opts):
    actions = sum([opts.get, opts.set])
    if (actions == 0):
        _exit_if_errors(['Must specify either --get or --set'])
    elif (actions > 1):
        _exit_if_errors(['The --get and --set flags may not be specified at the same time'])
    elif opts.get:
        if ((opts.min_length is not None) or any([opts.upper_case, opts.lower_case, opts.digit, opts.special_char])):
            _exit_if_errors(['The --get flag must be used without any other arguments'])
        self._get()
    elif opts.set:
        if (opts.min_length is None):
            _exit_if_errors(['--min-length is required when using --set flag'])
        if (opts.min_length <= 0):
            _exit_if_errors(['--min-length has to be greater than 0'])
        self._set(opts)
@rest_initialiser(version_check=True)
def execute(self, opts):
    actions = sum([opts.get, opts.set])
    if (actions == 0):
        _exit_if_errors(['Must specify either --get or --set'])
    elif (actions > 1):
        _exit_if_errors(['The --get and --set flags may not be specified at the same time'])
    elif opts.get:
        if ((opts.min_length is not None) or any([opts.upper_case, opts.lower_case, opts.digit, opts.special_char])):
            _exit_if_errors(['The --get flag must be used without any other arguments'])
        self._get()
    elif opts.set:
        if (opts.min_length is None):
            _exit_if_errors(['--min-length is required when using --set flag'])
        if (opts.min_length <= 0):
            _exit_if_errors(['--min-length has to be greater than 0'])
        self._set(opts)