-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abort git-alias when too many arguments given. #426
Conversation
👍 |
This is a good idea. Maybe we could just print a usage message instead? |
ef97960
to
caff332
Compare
Just add a "usage" banner |
I'm sorry I didn't just do this straight away. I was thinking we should do it like i.e error: unknown option `fsjljksldf'
usage: git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
or: git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
or: git-rebase --continue | --abort | --skip | --edit-todo
etc.. as in error: too many arguments
usage: git alias # list all aliases
or: git alias <search-pattern> # show aliases matching pattern
or: git alias <alias-name> <command> # alias a command ( I think the comments was nice so I left them in, although git doesn't usually do it that way) And maybe we should call it |
Avoid incorrect usage probably because of the missing quotes, like "git alias cm checkout master"
caff332
to
9859396
Compare
All right, updated it. |
👍 |
abort git-alias when too many arguments given.
abort git-alias when too many arguments given.
Avoid incorrect usage probably because of the missing quotes, like "git
alias cm checkout master"