pt-archiver purge and no-delete are mutually exclusive - lp1452914

This commit is contained in:
frank-cizmich
2015-05-12 16:57:43 -03:00
parent 66c74af47b
commit 6b666365a7

View File

@@ -5559,6 +5559,9 @@ sub main {
if ( $bulk_del && $limit < 2 ) {
$o->save_error("--bulk-delete is meaningless with --limit 1");
}
if ( $o->got('purge') && $o->got('no-delete') ) {
$o->save_error("--purge and --no-delete are mutually exclusive");
}
}
if ( $bulk_del || $o->get('bulk-insert') ) {