commandlineparser / commandlineparser/commandline

Use keyword to set positional argument

Đang mở
#515 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
C#
Star
4.8k
Fork
478
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I don't think this issue has been submitted before, but #56 seems to want the same sort of thing.

I want this syntax to be the normal usage:

app inputfile outputfile

But I want both arguments to be optional and fallback on defaults:

app

Which means that it would be nice to specify one but not the other:

app inputfile
app -t outputfile

Therefore, I'd like to be able to set outputfile via *either* a positional or a keyword argument. Is this supported?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.