{"thread":{"id":"46415","subject":"git command unrecognized argument issue?","startedAt":"2017-07-18T17:28:43Z","lastAt":"2017-07-18T17:28:43Z","messageCount":1,"participants":["Gilbert Catipon"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"324706","messageId":"CABdvCd2ntSJT_9G2NnTHLeLA8zRStyECPaMSfifW_5JYzye4Qw@mail.gmail.com","threadId":"46415","inReplyTo":null,"subject":"git command unrecognized argument issue?","fromName":"Gilbert Catipon","fromEmail":"gcatipon@gmail.com","sentAt":"2017-07-18T17:28:36Z","receivedAt":"2017-07-18T17:28:43Z","isPatch":false,"sender":{"key":"gcatipon@gmail.com","avatar":null},"body":"Hi,\n\nI noticed a surprise inconsistency when using the git command. Using\ngit version 2.7.4 and trying most of the commands listed by git –help\nusually output error: and usage text when passing an invalid argument.\n\nThe exception was the commands log and show. Looks like a cosmetic\nissue but I didn’t know if this is a dup issue/already in issue\ntracker.\n\nThanks,\nGilbert Catipon\n\n\nSo to reproduce the issue:\n\ngilbert@tea:~/dev/profile$ git log --foobar\nfatal: unrecognized argument: --foobar\n\n• Using a for loop to check a list of commands returns 2 fatal commands:\n\ngilbert@tea:~/dev/profile$ for k in bisect grep log show status; do\necho $k; git $k --foobarf; done\n\nlog\nfatal: unrecognized argument: --foobarf\nshow\nfatal: unrecognized argument: --foobarf\nstatus\nerror: unknown option `foobarf'\nusage: git status [<options>] [--] <pathspec>...\n\n• All these commands gave expected error\nfor k in branch checkout commit diff merge rebase tag; do echo $k ;\ngit $k --asdfasd; done\n\n• On ubuntu\ngilbert@tea:~/dev/profile$ uname -a\nLinux tea 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC\n2017 x86_64 x86_64 x86_64 GNU/Linux\n\n• Setting GIT_TRACE=/tmp/git_trace.log\n\ngilbert@tea:~/dev/profile$ cat /tmp/git_trace.log\n09:59:47.703082 git.c:561               trace: exec: 'git-bisect' '--foobarf'\n09:59:47.703164 run-command.c:334       trace: run_command:\n'git-bisect' '--foobarf'\n09:59:47.710513 git.c:344               trace: built-in: git\n'rev-parse' '--git-dir'\n09:59:47.712607 git.c:344               trace: built-in: git\n'rev-parse' '--show-cdup'\n09:59:47.714954 git.c:344               trace: built-in: git\n'rev-parse' '--git-path' 'objects'\n09:59:47.720353 git.c:344               trace: built-in: git 'grep' '--foobarf'\n09:59:47.723324 git.c:344               trace: built-in: git 'log' '--foobarf'\n09:59:47.726310 git.c:344               trace: built-in: git 'show' '--foobarf'\n09:59:47.729065 git.c:344               trace: built-in: git 'status'\n'--foobarf'\ngilbert@tea:~/dev/profile$\n"}]}