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 113051F9FD; Tue, 23 Feb 2021 06:03:13 +0000 (UTC) Date: Tue, 23 Feb 2021 06:03:12 +0000 From: Eric Wong To: Kyle Meyer Cc: meta@public-inbox.org Subject: Re: [PATCH] doc: lei: favor "-o format:$PATHNAME" over "-f" Message-ID: References: <20210217044032.GA17934@dcvr> <87r1le2bdo.fsf@kyleam.com> <20210218120722.GA14112@dcvr> <87k0r43g7w.fsf@kyleam.com> <20210219111334.GA25690@dcvr> <20210219190628.GA1129@dcvr> <8735xr5i1z.fsf@kyleam.com> <20210220080716.GA30570@dcvr> <87wnuzsaz3.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87wnuzsaz3.fsf@kyleam.com> List-Id: Kyle Meyer wrote: > Eric Wong writes: > > > Maybe not dropped, but probably tweaked for DWIM-ness. > > > > Maybe: > > > > If somebody wants a Maildir to dump JSON search results in they > > could use "-o ./json" or "-o json/" or "-o /path/to/json". > > > > "-o json" (no slashes or colons) would mean JSON output to stdout. > > > > But then, "json" could be the name of an existing directory, > > so if it exists... > > > > Part of me thinks its too magical... > > That's kind of my feeling, though I suspect that would at least > consistently do what I mean and be unsurprising. > > > On the other hand, maybe only requiring the colon: "-o json:" > > is enough to disambiguate and isn't too much typing. > > Yeah, I don't mind that, but I guess that almost gets us back to "-o > json:-". Then again, I didn't mind that either or really any of the > options proposed in this thread :) I'll ponder it more while I work on some other features... And bash completion still needs to be better in that area. > Anyway, no matter where this lands, the manpages should switch to > using/recommending the : prefix, so here's a patch for that. Yup, thanks, pushed as commit 56b3493c79087979f10f5a3cae7deedaf4ec9fa3