adamabdelhamed / PowerArgs

The ultimate .NET Standard command line argument parser
MIT License
568 stars 56 forks source link

workaround to replace argument -user with --user #122

Closed zinwalin closed 6 years ago

zinwalin commented 7 years ago

--user or -u is convention on Linux, but PowerArgs uses -user or -u. Currently, I can't change the called command options from --user to -user, is there any easy way to support --user as well?

adamabdelhamed commented 7 years ago

Use [ArgShortcut("--user")] and [ArgShortcut(ArgShortcutPolicy.ShortcutsOnly)]

aidapsibr commented 6 years ago

Seems like a good item for a FAQ!