From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7D30F1F9FD; Thu, 18 Feb 2021 12:07:22 +0000 (UTC) Date: Thu, 18 Feb 2021 12:07:22 +0000 From: Eric Wong To: Kyle Meyer Cc: meta@public-inbox.org Subject: Re: does "lei q" --format/-f need to exist? Message-ID: <20210218120722.GA14112@dcvr> References: <20210217044032.GA17934@dcvr> <87r1le2bdo.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87r1le2bdo.fsf@kyleam.com> List-Id: Kyle Meyer wrote: > Eric Wong writes: > > > "maildir:/path/to/dir" has been supported by public-inbox-watch > > for years, now. > > > > The following all work today: > > > > lei q -o mboxrd:/tmp/foo.mboxrd ... > > lei q -o mboxcl2:/tmp/foo.mboxcl2 ... > > lei q -o maildir:/tmp/foo/ ... > > > > So -f/--format seems redundant. > > I find ":" pretty natural/intuitive, even if > perhaps the stdout case (e.g., "mboxrd:-" or "concatjson:-") looks a bit > odd. Dropping --format makes sense to me. How about we just drop --format from the documentation, for now? (or at least stop recommending it when using with -o) The stdout case might be a reason to keep it for "lei q", especially since stdout is the default output: # this defaults to stdout, looks reasonable: lei q -f concatjson SEARCH_TERMS... # this does the same thing, but is more difficult to type and # looks strange: lei q -o concatjson:- SEARCH_TERMS # more readable, but more typing: lei q -o concatjson:/dev/stdout SEARCH_TERMS