qgreenland/util/cleanup.py
def _validate_ambiguous_command(kwargs):
    """Validate for conflicting options and suggest a fix."""
    msg = (
        'Ambiguous command! You have requested both to delete all'
        ' {resource}s _and_ to delete {resource}s by layer ID. Please choose'
        ' only one.'
    )
    if kwargs['delete_all_wip'] and kwargs['delete_wips_by_pattern']:
        raise click.UsageError(msg.format(resource='WIP'))

    if kwargs['delete_all_input'] and kwargs['delete_inputs_by_pattern']:
        raise click.UsageError(msg.format(resource='input'))

    return kwargs
Validate for conflicting options and suggest a fix.
Validate for conflicting options and suggest a fix.
Validate for conflicting options and suggest a fix .
def _validate_ambiguous_command(kwargs):
    msg = (
        'Ambiguous command! You have requested both to delete all'
        ' {resource}s _and_ to delete {resource}s by layer ID. Please choose'
        ' only one.'
    )
    if kwargs['delete_all_wip'] and kwargs['delete_wips_by_pattern']:
        raise click.UsageError(msg.format(resource='WIP'))
    if kwargs['delete_all_input'] and kwargs['delete_inputs_by_pattern']:
        raise click.UsageError(msg.format(resource='input'))
    return kwargs
def _validate_ambiguous_command ( kwargs ) : msg = ( 'Ambiguous command! You have requested both to delete all' ' {resource}s _and_ to delete {resource}s by layer ID. Please choose' ' only one.' ) if kwargs [ 'delete_all_wip' ] and kwargs [ 'delete_wips_by_pattern' ] : raise click . UsageError ( msg . format ( resource = 'WIP' ) ) if kwargs [ 'delete_all_input' ] and kwargs [ 'delete_inputs_by_pattern' ] : raise click . UsageError ( msg . format ( resource = 'input' ) ) return kwargs
Validate for conflicting options and suggest a fix.
Validate for conflicting options and suggest a fix .
"""Validate for conflicting options and suggest a fix."""
kwargs