From ruby-talk-admin@ruby-lang.org Fri Dec 16 00:06:12 2005 Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (8.12.3/8.12.3/Debian-6.6) with ESMTP id jBFF6BZk022069; Fri, 16 Dec 2005 00:06:11 +0900 Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 9B7965C4E; Fri, 16 Dec 2005 00:06:12 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 56E48F04866; Fri, 16 Dec 2005 00:06:16 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 05BD4F04850; Fri, 16 Dec 2005 00:06:15 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [210.163.138.100]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id A2428630029; Fri, 16 Dec 2005 00:06:17 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id E357E33F24; Fri, 16 Dec 2005 00:06:13 +0900 (JST) Received: from localhost (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 390FD33F2F for ; Fri, 16 Dec 2005 00:06:06 +0900 (JST) Received: from beryllium.ruby-lang.org ([127.0.0.1]) by localhost (beryllium.ruby-lang.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08800-01 for ; Fri, 16 Dec 2005 00:06:06 +0900 (JST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.200]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 98D6533F24 for ; Fri, 16 Dec 2005 00:06:05 +0900 (JST) Received: by xproxy.gmail.com with SMTP id t12so312082wxc for ; Thu, 15 Dec 2005 07:06:00 -0800 (PST) Received: by 10.70.12.2 with SMTP id 2mr2239610wxl; Thu, 15 Dec 2005 07:05:51 -0800 (PST) Received: by 10.70.34.12 with HTTP; Thu, 15 Dec 2005 07:05:51 -0800 (PST) Delivered-To: ruby-talk@ruby-lang.org Date: Fri, 16 Dec 2005 00:06:06 +0900 Posted: Thu, 15 Dec 2005 09:05:51 -0600 From: Jim Freeze Reply-To: ruby-talk@ruby-lang.org Subject: Re: GetoptLong example Sender: jimfreeze@gmail.com To: ruby-talk@ruby-lang.org (ruby-talk ML) Message-Id: <5cd596d60512150705n273e0af8yb39817265d9612ad@mail.gmail.com> In-Reply-To: <200512150847.55896.slitt@earthlink.net> References: <200512141939.34072.slitt@earthlink.net> <5cd596d60512150432y74e311c8pf90399b429a443e2@mail.gmail.com> <200512150847.55896.slitt@earthlink.net> X-ML-Name: ruby-talk X-Mail-Count: 44 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-talk-ctl@ruby-lang.org; help= X-Original-To: ruby-talk@ruby-lang.org DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oVqgMXauwddbXykpiP+jgQ1czt/qUgzo93s43pmpORuV+Jxq7j4yjOELAm4WfySOA4cCEIdEfj5OOrIGXaNqF9lQSLcLu6qNyEgjbXkO3JTClwxPdXosSv1PGcdm4q+uwh/IhrL9E5BQyd9GyZyK9uPPtHJsRPpy0F/FHDGnpcg= Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ruby-lang.org X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on beryllium.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=7.0 tests=AWL,BAYES_00, CONTENT_TYPE_PRESENT,MIMEQENC,QENCPTR2,RCVDFRMLOCALIP,RCVD_BY_IP autolearn=no version=3.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Precedence: bulk Lines: 24 List-Id: ruby-talk.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: X-Virus-Scanned: by AMaViS snapshot-20020531 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by blade.nagaokaut.ac.jp id jBFF6BZk022069 Hi Steve On 12/15/05, Steve Litt wrote: > I came across OptionParser. I tried reading the documentation, but I > saw no simple proof of concept to get me started. I therefore opted > for GetoptLong. At least it's not a total stranger, I've used it in > C and Perl. > > Perhaps I just came across the wrong documentation. > > I'd like to have the OptionParser documentation contain a proof of > concept, and a couple more examples that follow logically, without > skipping steps. Is this the documentation that you are referring to that needs improvement: http://rubyforge.org/docman/view.php/632/233/posted-docs.index.html Please help me out and post some comments on what you like and don't like. I am still making improvements in the docs. -- Jim Freeze