Re: Convention for help in git commands?
From: Martin Langhoff <hidden>
Date: 2016-06-15 22:42:09
On 10/26/05, Josef Weidendorfer [off-list ref] wrote:
On Tuesday 25 October 2005 22:24, you wrote:quoted
On 10/26/05, Junio C Hamano [off-list ref] wrote:quoted
quoted
* For commands which need at least one argument, the usage is also printed, if the command is run without argumentThis is slightly debatable. I'd rather see it error out for one thing, and we might want to do a sane default given no arguments later.This could lead to subtle bugs when git is used by porcelains. If there are going to be changes in default behaviours, let's have them soon-ish ;-)What is the difference for a porcelain between error out, presumable with an error message, and printing the usage alone?
Sorry! My comment was aimed at the "do a sane default given no arguments later" part of Junio's post. Error vs help messages don't affect porcelains if you check your tty and avoid spitting out a help message when invoked from a script ;-) cheers, martin