From: Petr Baudis Date: Thu, 20 Nov 2008 15:08:32 GMT Subject: Re: [PATCH] Allow help/--help/-h to be run outside of a TopGit repo Message-ID: <20081120150832.GI10491@machine.or.cz> In-Reply-To: <20081120145511.GD29789@piper.oerlikon.madduck.net> On Thu, Nov 20, 2008 at 03:55:11PM +0100, martin f krafft wrote: > also sprach Petr Baudis [2008.11.20.1527 +0100]: > > Why is this so complicated? Can't you just do_help from > > should_do_help()? > > Yes, I could, but that would be in conflict with my understanding of > the Law of Demeter. What is that? > > The overall semantics seems strange anyway, though - it seems that > > 'tg mail --help -r' will try to show help for '-r' instead of > > 'mail'. > > True, but then we are parsing command lines. Would you be opposed to > a getopt (POSIX) approach to normalising/parsing the command line? No. :-) Petr "Pasky" Baudis