From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10776 invoked from network); 1 Aug 2021 19:48:46 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 1 Aug 2021 19:48:46 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id F26F29CAA0; Mon, 2 Aug 2021 05:48:42 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id D16B69CA63; Mon, 2 Aug 2021 05:48:17 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id D1A9D9CA63; Mon, 2 Aug 2021 05:48:15 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id 30A239CA60 for ; Mon, 2 Aug 2021 05:48:14 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 171JmAvk001896 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 1 Aug 2021 13:48:11 -0600 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 171JmAcK001895; Sun, 1 Aug 2021 13:48:10 -0600 From: arnold@skeeve.com Message-Id: <202108011948.171JmAcK001895@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Sun, 01 Aug 2021 13:48:10 -0600 To: tuhs@tuhs.org, douglas.mcilroy@dartmouth.edu References: In-Reply-To: User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] Systematic approach to command-line interfaces [ meta issues ] X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Douglas McIlroy wrote: > In realizing the white paper's desire to "have the parser > provide the results to the program", it's likely that the mechanism > will, like Yacc, go beyond parsing and invoke semantic actions > as it identifies tree nodes. I have to admit that all this feels like overkill. Parsing options is only a very small part of the real work that a program does. Speaking for myself, I want something simple and regular that will get the job done and let me get on with the actual business of my software. A grammar just for command-line argument parsing feels like the tail wagging the dog: not nearly enough ROI, at least for me. I happen to like the getopt_long interface designed by the GNU project. It's easy to learn, setup and use. Once it's in place it's set and forget. My two cents, Arnold