{"action":"closed","issue":{"url":"https://api.github.com/repos/scriptcs/scriptcs/issues/1106","labels_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/1106/labels{/name}","comments_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/1106/comments","events_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/1106/events","html_url":"https://github.com/scriptcs/scriptcs/issues/1106","id":112699251,"number":1106,"title":":help command lists command aliases with the name of the original command","user":{"login":"ryanrousseau","id":1571799,"avatar_url":"https://avatars.githubusercontent.com/u/1571799?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanrousseau","html_url":"https://github.com/ryanrousseau","followers_url":"https://api.github.com/users/ryanrousseau/followers","following_url":"https://api.github.com/users/ryanrousseau/following{/other_user}","gists_url":"https://api.github.com/users/ryanrousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanrousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanrousseau/subscriptions","organizations_url":"https://api.github.com/users/ryanrousseau/orgs","repos_url":"https://api.github.com/users/ryanrousseau/repos","events_url":"https://api.github.com/users/ryanrousseau/events{/privacy}","received_events_url":"https://api.github.com/users/ryanrousseau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T23:27:13Z","updated_at":"2015-10-22T13:04:24Z","closed_at":"2015-10-22T13:04:24Z","body":"If I add an alias for :clear called :cls and then run the :help command, \"clear\" will show up twice in the list.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1571799/10652715/7c838a48-781e-11e5-884c-8544e2433939.png)\r\n\r\nIt would be nice to show the the command alias in the help list as well.\r\n\r\nHow would you feel about adding a new class AliasedCommand (I'm not a fan of the name because it's too close to AliasCommand, but I haven't come up with anything better yet)\r\n\r\n```csharp\r\n    public class AliasedCommand : IReplCommand\r\n    {\r\n        private readonly string _Alias;\r\n        private readonly IReplCommand _Command;\r\n\r\n        public string Description\r\n        {\r\n            get\r\n            {\r\n                return _Command.Description;\r\n            }\r\n        }\r\n\r\n        public string CommandName\r\n        {\r\n            get\r\n            {\r\n                return _Alias;\r\n            }\r\n        }\r\n\r\n        public object Execute(IRepl repl, object[] args)\r\n        {\r\n            return _Command.Execute(repl, args);\r\n        }\r\n\r\n        public AliasedCommand(string alias, IReplCommand command)\r\n        {\r\n            _Alias = alias;\r\n            _Command = command;\r\n        }\r\n    }\r\n```\r\n\r\nand replacing\r\n\r\n```csharp\r\n            repl.Commands[alias] = command;\r\n```\r\n\r\nwith\r\n\r\n```csharp\r\n            repl.Commands[alias] = new AliasedCommand(alias, command);\r\n```"}}