Why are there multiple ways to get the manual in Git?
- From
- Andrew Johnson <ajohnson388@gmail.com>
- Date
- Sep 17, 2016, 17:47 UTC
- Message-ID
- <CAM_5GX48gDAZSvAWnxO5n8uhYf8vmfAJ88_31_ewsQxyPfF7iA@mail.gmail.com>
Hi,
I was curious as to why the developers of Git decided to have three methods to get the manual for a verb. I am a developer who strives to understand Git to its fullest extent, and will share any information given on this question.
While reading Pro Git 2nd Ed. I came across these three methods:
$ git help <verb> $ git <verb> --help $ man git-<verb>
I tested all three to confirm they were equivalent.
What was the motivation behind the complication, if any? I presume most developers would not provide multiple commands that do the same thing for absolutely no reason, so I led myself to ask this question.
Respectfully, Andrew Johnson