git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Allow help/--help/-h to be run outside of a TopGit repo

From
MKmartin f krafft <madduck@debian.org>
Date
Nov 20, 2008, 15:11 UTC
Message-ID
<20081120151100.GA2354@piper.oerlikon.madduck.net>
In-Reply-To
<20081120150832.GI10491@machine.or.cz>
also sprach Petr Baudis <pasky@suse.cz> [2008.11.20.1608 +0100]:
> What is that?
http://en.wikipedia.org/wiki/Law_of_Demeter

In the context of our discussion, it basically means that if should_do_help calls do_help, then we cannot test should_do_help independently (without mocking out do_help, which is plain ugly). Not that we have a testing infrastructure (yet) anyway, but...

> > True, but then we are parsing command lines. Would you be opposed to
> > a getopt (POSIX) approach to normalising/parsing the command line?
> 
> No. :-)

Good. I will see what I can do about this. In the mean time, I will just leave things as they are.

-- 
 .''`.   martin f. krafft <madduck@debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
windoze nt crashed.
i am the blue screen of death.
no one hears your screams.
Previous: Petr Baudis
Message 5 of 5 in “Allow help/--help/-h to be run outside of a TopGit repo”
  1. Allow help/--help/-h to be run outside of a TopGit repomartin f. krafft, Nov 20, 2008
  2. Petr BaudisNov 20, 2008
  3. martin f krafftNov 20, 2008
  4. Petr BaudisNov 20, 2008
  5. martin f krafftNov 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.