bilal-fazlani / commanddotnet

A modern framework for building modern CLI apps
https://commanddotnet.bilal-fazlani.com
MIT License
570 stars 29 forks source link

support `/` as options prefix and `-` for long names for powershell #317

Closed drewburlingame closed 2 years ago

drewburlingame commented 4 years ago

Currently, short names must be prefixed with - and long names with --. Windows has a common convention of using / for short and long names and also flag clubbing. Powershell uses a single -. CommandDotNet hasn't supported those in the past because tokenization happened without context of the commands so it was not possible to determine when these were option prefixes or just values.

drewburlingame commented 2 years ago

completed in v5