Options::parse() should complain about unsupported options and should print help
- Ngôn ngữ chính
- C++
- Star
- 335
- Fork
- 88
- Merge trung bình
- 1 giờ 28 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
This code:
```
int
main(int argc, char* argv[]) {
Options opt("Testcase");
opt.iterations(200);
opt.parse(argc,argv);
Script::run(opt);
return 0;
}
```
doesn't complain about bad arguments and doesn't print help.
It would be great if it would become a bit more user friendly.
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
Hướng nghiên cứu
Start at the Options::parse(argc, argv) entry point used in the issue's example and inspect how command-line arguments are currently handled. Exercise the example with an unsupported option and a help request; done means invalid arguments produce a complaint and help is printed when requested.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100