new help command

This commit is contained in:
Anand Babu (AB) Periasamy
2015-11-14 23:37:00 -08:00
parent f94fca577b
commit dfbd6e6567
16 changed files with 73 additions and 34 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ EXAMPLES:
}
func checkDiffSyntax(ctx *cli.Context) {
if len(ctx.Args()) != 2 || ctx.Args().First() == "help" {
if len(ctx.Args()) != 2 {
cli.ShowCommandHelpAndExit(ctx, "diff", 1) // last argument is exit code
}
for _, arg := range ctx.Args() {