Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965743AbbKDUde (ORCPT ); Wed, 4 Nov 2015 15:33:34 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35331 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965377AbbKDUdd (ORCPT ); Wed, 4 Nov 2015 15:33:33 -0500 Date: Wed, 4 Nov 2015 12:33:29 -0800 From: Brian Norris To: Joe Perches Cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH v2 3/4] get_maintainer: add --no-foo options to --help Message-ID: <20151104203329.GO7274@google.com> References: <1446665302-102908-1-git-send-email-computersforpeace@gmail.com> <1446665302-102908-3-git-send-email-computersforpeace@gmail.com> <1446666524.21133.63.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446666524.21133.63.camel@perches.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2310 Lines: 62 On Wed, Nov 04, 2015 at 11:48:44AM -0800, Joe Perches wrote: > On Wed, 2015-11-04 at 11:28 -0800, Brian Norris wrote: > > Many flag options are boolean and support both a positive and a negative > > invocation from the command line. Some of these are even mentioned by > > example (e.g., --nogit is mentioned as a default option), but they > > aren't explicitly mentioned in the list of options. It happens that some > > of these are pretty important, as they are default-on, and to turn them > > off, you have to know about the --no-foo version. > [] > > v1 -> v2: > > * don't clutter with --[no]foo bracketing; just include this note up front; > > suggested by Joe > [] > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > [] > > @@ -770,6 +770,9 @@ usage: $P [options] patchfile > > $P [options] -f file|directory > > version: $V > > > > +Most options have both positive and negative forms. The negative form of --foo > > +is --nofoo. > > + > > MAINTAINER field selection options: > > --email => print email address(es) if any > > --git => include recent git \*-by: signers > > Hey Brian. > > Thanks for the series. > > It all seems sensible except this should be below the > options instead of above it. I would put it last in > the "Notes: " block just above the EOT marker. Oh, I completely overlooked the 'Notes' section when doing this :) I was just imitating the placement in 'man gcc', where the note is in the DESCSRIPTION, which comes before all the options. But your suggestion does seem like a good place. > I would have broken the lines like: > > Most options have both positive and negative forms. > The negative forms for -- are --no and --no-. OK, so in the Notes section, there's a form of second-line indentation, so I guess this? Most options have both positive and negative forms. The negative forms for -- are --no and --no-. > So, if you could please respin and resend the series with > that change, I'll ack it. Will do shortly. Regards, Brian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/