|
From: | Paul Eggert |
Subject: | Re: Checking whether program foo supports option --bar |
Date: | Tue, 1 Mar 2022 10:23:23 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 3/1/22 09:08, Sébastien Hinderer wrote:
Is there a conventional / recommended way to test whether a program supports a given command-line option?
You can use either AS_IF or plain sh 'if', depending on how complicated the then- and else- parts are.
[Prev in Thread] | Current Thread | [Next in Thread] |