You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Get-Command -Syntax should work with aliases #5963
I just came here to log this. The existing behavior is most unhelpful.
One thought I have that differs from the above however is in the case of Get-Command -Syntax $someAliasName, I was thinking I'd prefer it show the actual alias mapping, followed by the syntax for the alias, especially since aliases shouldn't be used in scripts. The thinking behind this is that 100% of the time when I would use gcm del -syntax (or any alias in place of del), I'd be using the alias to save typing, as a shorthand to get the actual syntax for the command that will be invoked, and less as a command I actually want to invoke. So my expected behavior would look more like this:
Activity
KirkMunro commentedon Apr 10, 2019
I just came here to log this. The existing behavior is most unhelpful.
One thought I have that differs from the above however is in the case of
Get-Command -Syntax $someAliasName, I was thinking I'd prefer it show the actual alias mapping, followed by the syntax for the alias, especially since aliases shouldn't be used in scripts. The thinking behind this is that 100% of the time when I would usegcm del -syntax(or any alias in place ofdel), I'd be using the alias to save typing, as a shorthand to get the actual syntax for the command that will be invoked, and less as a command I actually want to invoke. So my expected behavior would look more like this:Or maybe the output should actually state "NOTE: del is an alias for the Remove-Item command", at the top or bottom of the output.
TylerLeonhardt commentedon Sep 17, 2019
Steve Lee (@SteveL-MSFT) potentially a solid hackathon/up-for-grabs issue?
KirkMunro commentedon Sep 17, 2019
TylerLeonhardt A great Hacktoberfest issue.
ChrisLGardner commentedon Oct 9, 2019
Sounds like an interesting challenge so I'll give it a shot
kvprasoon commentedon Oct 28, 2020
This can be closed Ilya (@iSazonov) / Chris Gardner (@ChrisLGardner) :-)