X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiQuery.pm;h=eb7b98d416fa20e2c323cad6d7d7eda2453c8a89;hb=c4aa366973c9129a640f51c6a52a986f393ac206;hp=0435a5163137a4f0693bf7374bf544041aa0ace0;hpb=528d69bbbda3cd26d9cc317eff92d21d980b2056;p=public-inbox.git diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 0435a516..eb7b98d4 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -1,7 +1,8 @@ # Copyright (C) 2021 all contributors # License: AGPL-3.0+ -# handles lei commands +# handles "lei q" command and provides internals for +# several other sub-commands (up, lcat, ...) package PublicInbox::LeiQuery; use strict; use v5.10.1; @@ -130,6 +131,8 @@ sub lei_q { } else { die "unrecognized --sort=$sort\n"; } + $opt->{save} and return + $self->fail('--save and --sort are incompatible'); } $self->{mset_opt} = \%mset_opt;