-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1900 from H3rnand3zzz/enhancement/better-aliases
Add params support for aliases
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1643,12 +1643,13 @@ static const struct cmd_t command_defs[] = { | |
"Add, remove or list command aliases.") | ||
CMD_ARGS( | ||
{ "list", "List all aliases." }, | ||
{ "add <name> <value>", "Add a new command alias." }, | ||
{ "add <name> <value>", "Add a new command alias. The alias name must not contain any space characters." }, | ||
{ "remove <name>", "Remove a command alias." }) | ||
CMD_EXAMPLES( | ||
"/alias add friends /who online friends", | ||
"/alias add /q /quit", | ||
"/alias add a /away \"I'm in a meeting.\"", | ||
"/alias add urg /msg [email protected] [URGENT]", | ||
"/alias add afk /status set away \"Away From Keyboard\"", | ||
"/alias remove q", | ||
"/alias list") | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters