by ryandrake · 2y ago · 0 comments
the_command -foo
...and the tool responds with: -foo: No such option. You probably meant --foo
Well shit! Thank you for that burst of empathy. If you, developer, are that confident that's what I meant why couldn't you just make both inputs do the same thing? You went out of your way to make the code handle -foo, but only to have the program fire off that snide remark instead of doing what you know the user meant to do. Maddening.And if you've got something like 'sed' overwriting the input file (-i), it'd better make sure the flags are exactly as documented.
git psuh
To be told "you probably mean push"... yeah it'd be easier for me if they went ahead and accepted the typo :D [alias]
psuh = push
to your ~/.gitconfig?I personally have "ull = pull" and "ush = push" in this section, together with "alias gitp='git'" in my ~/.bash_aliases because of how often I type "gitp ull".