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 out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) (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 AE5411F934 for ; Wed, 27 Jan 2021 02:04:25 +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=1611713061; 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=b2FqsW0tzWX65hppS6cVAm8YKnN+u0CmHHf+e1T6phw=; b=VA7/945oqrAauX73VUt5ji4q09Unu5ClDFR8vRoAVWdrQUoSL4Wyrq5+sCJbFM2y1hBh+F C5Zz2Ataiby9uoskEPun3CIMXt638k7OfAF/xfUTCIPOzM2VUVfxno1QrY74uRCoKJH/V2 yEPYgiQ4gIkslX9Mkg8FLrP6u0IGbmdVWflKq59w+vH8jeOr76Kv0G+lcl+1BXBWVw8bUP wTN5c/ng7wdB/dyjtKnnZWkIx+2hOogB40RbFpp6UBMkNGSZh38LJUS3iCdeKVF6AscZqP VyjMJ0VNCFXIIhRUh8Rc1cBm0Sbq2wsR+w6TTCxKs6v/XebL4E+/XZy/6BE4ZQ== From: Kyle Meyer To: Eric Wong Cc: meta@public-inbox.org Subject: Re: RFC: lei q --include/-I and similar switch names In-Reply-To: <20210125073347.GA15401@dcvr> References: <20210125073347.GA15401@dcvr> Date: Tue, 26 Jan 2021 21:04:18 -0500 Message-ID: <87sg6n16fx.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: > "add-external" sometimes feels like an unnecessary burden > for a one-off search, so it'd be nice to be able to search > an external once, or exclude certain externals. > > I'm set on supporting "-I$DIR_OR_URL" since that's common > command-line usage for gcc/clang/tcc, perl, ruby to include > extra search paths for headers/modules. Sounds very useful. > --exclude is naturally the opposite of --include, and I don't > know if --exclude needs a short name. "-v" (like "grep -v") > isn't available, but maybe "-X" works, since it's something we > can't pass from the CLI to curl. We're not passing "-x" to > curl, either, but we pass "--proxy" through, of course. My two cents: I think it'd be okay to leave --exclude without a short name... > I don't know if "--only" is a good name and don't know of any > common tools with similar functionality (but I know very little > in general :x). "--exclusive" would be confusing with > "--exclude" and require more typing even with tab-completion. > If we use "--only", then we can use -O for --only since we can't > forward -O to curl, either... ... and --only/-O sounds good to me.