From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130887 invoked by alias); 22 Feb 2017 21:11:45 -0000 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 Received: (qmail 130877 invoked by uid 89); 22 Feb 2017 21:11:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:1416, H*i:sk:87mvde6, H*f:sk:87mvde6 X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Feb 2017 21:11:44 +0000 Received: by simark.ca (Postfix, from userid 33) id DD17F1E7DE; Wed, 22 Feb 2017 16:11:42 -0500 (EST) To: Spencer Baugh Subject: Re: [PATCH] gdb: add "-a" option for inferior commands X-PHP-Originating-Script: 33:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 22 Feb 2017 21:11:00 -0000 From: Simon Marchi Cc: Andreas Schwab , gdb-patches@sourceware.org In-Reply-To: <87mvde6im3.fsf@catern.com> References: <20161229205458.319-1-sbaugh@catern.com> <87vau2h0wl.fsf@linux-m68k.org> <87poia7st3.fsf@catern.com> <8737f6o9xk.fsf@linux-m68k.org> <87mvde6im3.fsf@catern.com> Message-ID: <95f9622e067422a442bb97e85dd27c65@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.3 X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00609.txt.bz2 On 2017-02-22 16:06, Spencer Baugh wrote: > Andreas Schwab writes: >> On Feb 21 2017, Spencer Baugh wrote: >> >>> Andreas Schwab writes: >>>> On Dez 29 2016, Spencer Baugh wrote: >>>> >>>>> @@ -1055,8 +1101,8 @@ as main program.")); >>>>> set_cmd_completer (c, filename_completer); >>>>> >>>>> add_com ("remove-inferiors", no_class, remove_inferior_command, >>>>> _("\ >>>>> -Remove inferior ID (or list of IDs).\n\ >>>>> -Usage: remove-inferiors ID...")); >>>>> +Remove inferior ID (or list of IDs, or all inferiors with -a).\n\ >>>>> +Usage: remove-inferiors [-a] ID...")); >>>> >>>> What is the meaning of ID if -a is present? >>> >>> ID is ignored if -a is present. >> >> Shouldn't ID be optional then? > > Like this then? > > Usage: remove-inferiors [-a] [ID...] > > I was just concerned that that doesn't indicate that one of them must > be > present. Not sure what the convention is to indicate that. An option would be to have multiple lines. Not sure how to format it, but something like: (gdb) help remove-inferiors Remove inferior ID (or list of IDS) Usage: remove-inferiors ID... Remove all inferiors Usage: remove-inferiors -a It would be nice to decide on a standard format for help messages, kind of like man pages always have the same format. Simon