Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--referer is misspelled; should be --referrer, or tell the user what they did wrong #26314
Comments
|
This is intentional. Also neither wget nor curl have such an alias. |
|
This seems like an unwelcoming approach to newcomers of the software. If you can take what the user typed and figure out, unambiguously, what they meant, why not help them out? I also think wget and curl should either add aliases, or add a general flag spell-checker, for the same reason. I can't believe I'm about to use Git as an example of good user experience, but it has a similar-command matcher in it. Watch what happens when I misspell a command:
Why do I care so much about |
Checklist
Verbose log
Description
The
--refererparameter is a possibly intentional misspelling of the English word "referrer". When typing a command, an inexperienced user may not notice the misspelling, spell the word "correctly" (i.e. not the way youtube-dl spells it), and be confused by the error message:error: no such option: --referrer.youtube-dl should either accept
--referreras an alias to--referer, since it's clear what the user wanted to do, or should give a more helpful error message, such asdid you mean --referer?