Received: from mariecurie.labrat.space (mariecurie.labrat.space [116.203.185.229]) by mail-b.sr.ht (Postfix) with ESMTPS id 8B1A4FF080 for <~sircmpwn/aerc@lists.sr.ht>; Tue, 29 Sep 2020 06:15:23 +0000 (UTC) Authentication-Results: mail-b.sr.ht; dkim=pass (2048-bit key) header.d=labrat.space header.i=@labrat.space header.b=Z3y7YaPj Received: from [10.99.97.3] (adsl-178-38-52-237.adslplus.ch [178.38.52.237]) by mariecurie.labrat.space (Postfix) with ESMTPSA id AEF4811F8E62; Tue, 29 Sep 2020 08:13:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=labrat.space; s=201904; t=1601360008; bh=Uc8E8uuC8S5xDVxWBhjO4KszXYgIJE9M5/YUCmz07kc=; h=Date:In-Reply-To:References:MIME-Version:Content-Type:Subject:To: CC:From:Message-ID:From:To:CC:Date:Subject:Content-Type: Content-Disposition:Reply-To:In-Reply-To:MIME-Version:Message-ID: References; b=Z3y7YaPjFW+kj/ZassbzEWsFWgrVZ4YcyfiUDIUc/OyN/PG8EcoCKjFJ8SpwQrcei muQBN3wz+n5D5HtGvkJzURc4gy8CYKQIfZbgsvGoOhHEwcTY/U60ruqSFUVsgLjX+v DJhZMfJ/ZpNvRv8uCjz/BE2oZnsR6VLxX0vytvGX7NxeYALCpDjH0lXBEr35gm8spi fmcXJ60GW/FQqlcXT75wcp0Il6UZwILV8B7g8mqpc0MimR/cUqQBZ3osgdqXwYoOQc yJV3E6agoqwmhPZAnHEXHZzqv8z0FIAjNSko7wkxTRCObInwq4QWpkzRtBMqpVLOSX CXPumB6DX3DNg== Date: Tue, 29 Sep 2020 08:15:17 +0200 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] on macOS, :open now can use the specified application To: JD CC: ~sircmpwn/aerc@lists.sr.ht From: Reto Message-ID: <50D9C695-C911-4B7C-A521-DC88D2FCCDB9@labrat.space> On 29 September 2020 07:35:20 CEST, JD wrote: >However, about these possibile "non recognized arguments": this way, >we'll have a case with no arguments at all (the usual `:open`) and a >case with whatever is going after `:open` to be passed to open/xdg-open >-- so, when to show help for :open then? Should we also introduce What do you mean by help? The command completion? =20 >something like `:open --help`? No other commands seem to support >that=2E=2E=2E No, we'll simply document the behaviour and call it a day=2E `open [args= =2E=2E=2E]` or some such=2E >But then on a system wtih the standard xdg-open passing additional >parameters to it (by mystake, let's say) will result in exit status 1, >am I wrong? Should we do anything in this case? Yes you are wrong, exit status 1 is not guaranteed=2E You could get any no= n zero exit status (some applications may associate meaning with the exit s= tatus)=2E Other than that, we'd do what we always do, bubble up the error to the use= r and let them handle it, after all it's their fault ;) Cheers, Reto