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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23720 invoked from network); 31 Jul 2021 21:38:26 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 31 Jul 2021 21:38:26 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 1FF009C9D9; Sun, 1 Aug 2021 07:38:23 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 650309C9B4; Sun, 1 Aug 2021 07:38:12 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="T5UtoiEG"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 099669C9B4; Sun, 1 Aug 2021 07:38:11 +1000 (AEST) Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by minnie.tuhs.org (Postfix) with ESMTPS id ED8C69C9B2 for ; Sun, 1 Aug 2021 07:38:08 +1000 (AEST) Received: by mail-oi1-f175.google.com with SMTP id 26so996512oiy.0 for ; Sat, 31 Jul 2021 14:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ymEAcdHRgH7K/43uO8myFnZb4NxLjPp9gO3xfodFYK8=; b=T5UtoiEG7uTKFczBetL7fM61DExnoYLCWeXvTq/l0+lyvadRfsgFrm6aDM0IIBkM/u /o3Ifuvu4R5WS6Mingo8UXJjys4L0a5CWDQVhJ4xy0uDGQNlBw9SuN47eor/jREwSJoP NX5lOdBepB6JOW+FCyOg1QmOnT+z4BC/KUp0wpuz99FL6XPFiLSQmPoIHAV/GklN8HnF NhL8gtrl1gwSfKcmnXACke3o3yzRu6Y+KCMGF94f+ID9PHIw5xNEpZBMBt2yor5x/qsJ pJWHnlnY8SwxZuPkiRkrcqNClADK5Sh2gMsBJgYyfPi2YxOmb507FKzMfZVzHTgfCp/J pUDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ymEAcdHRgH7K/43uO8myFnZb4NxLjPp9gO3xfodFYK8=; b=oGe0/4Q6/RbSLzepRzjxwJlZT+Xo5zT8mgXlLRRL00jj+kn3EDS44nv/s2BSz7oPzk KibUHDc3C05TcBkTlw0F5wzyW8D2b8Ug05FGamtHbNIJ0tSOEnUtY6SmbbljdMB7T+hM hT45tWt05LAiS0LGlJeugdYoXWCgCZL9Q4/hewEBWnXj72GGCfGX8uDafkPUpnQKBm3B DSiu6teN2E5w2TJegxNiSF6XmwrFDhwsGdkjBLG3OpKD/FsMkp1S8sD1zDO+5tJZ2MPS GGc5TzD93K9hxh7IWViojIVIBEJnyM1r57TwckXY7HzhuejIHKm8nhseMdL6G9SVoqyA uaJg== X-Gm-Message-State: AOAM5331yZ/+hFMQm/4cl5+MSJ/GXNWO9usT2mXy4NSu5Z4OCDMW0L0B 2XFEbi1c3EYCpz7BCORI7PmHfIsdbFaWe/nwfO7PBoTDF6Q= X-Google-Smtp-Source: ABdhPJysHqma7IjlvTrVZ3C1tDbHe1Zc4O/p8olMEBIRq5Iucdx17sA0bfXvV39WbqF7khmmK21SYMUDX8LHFAmWsGk= X-Received: by 2002:aca:f58e:: with SMTP id t136mr6101919oih.33.1627767488251; Sat, 31 Jul 2021 14:38:08 -0700 (PDT) MIME-Version: 1.0 References: <20210731142533.69caf929@moon> <202107311920.16VJK2jT2362871@fourwinds.com> <202107312132.16VLW6VD2410038@fourwinds.com> In-Reply-To: <202107312132.16VLW6VD2410038@fourwinds.com> From: Richard Salz Date: Sat, 31 Jul 2021 17:37:58 -0400 Message-ID: To: Jon Steinhart Content-Type: multipart/alternative; boundary="000000000000ea0aef05c87226bc" 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: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000ea0aef05c87226bc Content-Type: text/plain; charset="UTF-8" On Sat, Jul 31, 2021 at 5:34 PM Jon Steinhart wrote: > Well, in my opinion that's not really an accurate representation of using > getopt. > > It's how all my getopt code works. getopt is in libc and a stdlib.h so you can't count that against it :) on the other hand, your sample code didn't show arg/no-arg handling. --000000000000ea0aef05c87226bc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Jul 31, 2021 at 5:34 PM Jon S= teinhart <jon@fourwinds.com>= wrote:
Well, in= my opinion that's not really an accurate representation of using getop= t.


It's how all my getopt code works.=

getopt is in libc and a stdlib.h so you can't= count that against it :)=C2=A0 on the other hand, your sample code didn= 9;t show arg/no-arg handling.

--000000000000ea0aef05c87226bc--