If I write a script called git-foo and drop it somewhere in my PATH , then I can run git foo to execute this script and run git foo --option argument to pass command line parameters and arguments for my script.
This syntactic sugar is destroyed when you try to print reference documentation. I did git-foo --help , but if I ran git foo --help , git did not move --help to my script and instead tries to open the man page for git-foo . I do not want this. Is there a way to suppress this behavior for custom commands? (Ideal as the author of the script, but I am willing to agree to a way to suppress this as a user.)
I suspect that I have to create a man page, but it seems rather burdensome: then the script will need to be packaged with an additional file, and the additional file will need to be installed somewhere else, and then uninstalling will have more work.
source share