commandlineparser / commandlineparser/commandline

Configure name, version, and copyright info printed text

未關閉
#757 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
4.8k
分支
478
PR 合併指標
30 天內沒有已合併 PR

描述

I have a C# app composed of multiple projects. The entry point is called `CLI`.

[Following the example on the front page](https://github.com/commandlineparser/commandline#c-examples), it looks like I'm forced to print this every time my app is called:
```
CLI 1.0.0
Copyright (C) 2021 CLI
```

However I don't want to print the name of the assembly - nor do I want to print copyright info and version info - I'd rather handle that myself.

Is it possible to inject this information? I tried disabling it, but it looks like that will disable the help text also - which isn't what I want. (I tried this https://github.com/commandlineparser/commandline/wiki/Generating-Help-and-Usage-information#overriding-the-default-behavior).

I don't really want to mess with my assembly info just to print the accurate product name.

I find this to be a really odd default behavior.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從專案首頁上的 C# 範例以及關於覆寫預設行為的連結 wiki 區段開始。追蹤名稱、版本、copyright 和說明文字的選取方式;完成後應允許設定或省略這些列印出的欄位,而不停用說明輸出。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp
領域
cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。