From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3814 invoked by alias); 6 Dec 2010 20:33:38 -0000 Received: (qmail 3806 invoked by uid 22791); 6 Dec 2010 20:33:37 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Dec 2010 20:33:33 +0000 Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id oB6KXVIj024243 for ; Mon, 6 Dec 2010 12:33:31 -0800 Received: from vws8 (vws8.prod.google.com [10.241.21.136]) by kpbe14.cbf.corp.google.com with ESMTP id oB6KXUUL006757 for ; Mon, 6 Dec 2010 12:33:30 -0800 Received: by vws8 with SMTP id 8so5088600vws.12 for ; Mon, 06 Dec 2010 12:33:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.249.203 with SMTP id ml11mr5069199qcb.266.1291667608972; Mon, 06 Dec 2010 12:33:28 -0800 (PST) Received: by 10.220.203.201 with HTTP; Mon, 6 Dec 2010 12:33:28 -0800 (PST) In-Reply-To: References: <20101206194128.989152461AD@ruffy.mtv.corp.google.com> Date: Mon, 06 Dec 2010 20:33:00 -0000 Message-ID: Subject: Re: [patch] main.c (captured_main): Alphabetically sort long_options. From: Doug Evans To: Tom Tromey Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00053.txt.bz2 On Mon, Dec 6, 2010 at 12:22 PM, Tom Tromey wrote: >>>>>> "Doug" =3D=3D Doug Evans writes: > > Doug> fyi, I will check this in in two days if there are no objections. > > It is fine by me. > > Doug> A good next step would be update --help output, > Doug> but I was going to wait until after this goes in. > > FWIW I think --help output is most useful when it is broken into > sections, and then sorting is applied in each section. =A0See "tar" or > "automake" for reasonable examples. Yeah, good point. If you compare --help output with the contents of long_options, you'll see --help is in need of some TLC.