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=-3.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 699211F9FD for ; Sat, 20 Feb 2021 07:12:30 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1613805146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=C2lvqbHU1rwtXMhnvpDlNa26KeCQMpwX2huI9pvLX1M=; b=sU+ecvyfTSzQk7bdjHkwERAoMKM2GwzU5hgMSu1K5Xa+f/He6SqoJ8F4ZyfXCzyYVzuURq 1x+fJM8JqvM1x8C4eoXI1YfPORwQR6aiKO37otycgkuA+JqF+1FnVgOVx8zwztd+huHefO QIR5DYQs5pTPjO/iZjidZRN7MvS+NYlRLDhltP3wlhcAthxV2R3A7wWwNsUZukkPQ3x17g emd3IiRZScifrl2KxtmaOevT/tMBb+/xP/0VqHJl1cKveMpH3npADbvoU+B7+8CPSpORVh rCOtXpZk77+YQMFA4qMWaGQwqK+0pSrYyPMNpGb6vGAjLhWRQnXi5SXViUwHDQ== From: Kyle Meyer To: Eric Wong Cc: meta@public-inbox.org Subject: Re: does "lei q" --format/-f need to exist? In-Reply-To: <20210219190628.GA1129@dcvr> References: <20210217044032.GA17934@dcvr> <87r1le2bdo.fsf@kyleam.com> <20210218120722.GA14112@dcvr> <87k0r43g7w.fsf@kyleam.com> <20210219111334.GA25690@dcvr> <20210219190628.GA1129@dcvr> Date: Sat, 20 Feb 2021 02:12:24 -0500 Message-ID: <8735xr5i1z.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com List-Id: Eric Wong writes: > Eric Wong wrote: [...] >> Alright, I think keeping it and only recommending it for stdout >> (or --stdin with import) is the way to go. >> >> "-o format:/path/name" should be encouraged for regular file and >> directory args. > > Actually, maybe "-o $format" be implicitly stdout? > (and "-i $format" be implicitly stdin for convert|import) Hmm, true. If we went that route, I guess the format auto-detection in LeiOverview::detect_fmt() (currently just for maildir) would be dropped because an -o argument without a colon would be taken as the format rather than a destination that the format can be detected from?