commandlineparser / commandlineparser/commandline

Option to sort commands by verb name

オープン
#737 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

Is it possible to get option to sort all command by VerbAttribute?
Example: for next commands -
[Verb("pa", HelpText = "Perform action")]
public class PerformActionRequest { }

[Verb("npa", HelpText = "Don't do it")]
public class PreventActionRequest { }

[Verb("a", HelpText = "Action")]
public class ActionRequest { }

parser.ParseArguments(args, typeof(PreventActionRequest ),
typeof(PerformActionRequest ),
typeof(ActionRequest ))

At cmd we'll see all commands sorted by Verb attribute:
a Action
npa Don't do it
p Perform action

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。