Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15

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

From: martin f krafft <hidden>
Date: 2016-06-15 22:45:40

also sprach Petr Baudis [off-list ref] [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.
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?

Cheers,

-- 
 .''`.   martin f. krafft [off-list ref]
: :'  :  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
 
this space intentionally left occupied.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help