Options::parse() should complain about unsupported options and should print help
- Langage dominant
- C++
- Étoiles
- 335
- Forks
- 88
- Merge moyen
- 1 h 28 min
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100