boostorg / boostorg/program_options
No way to get number of non-unlimited positional arguments
- Lingua principale
- C++
- Stelle
- 136
- Fork
- 117
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
[Documentation](https://www.boost.org/doc/libs/1_68_0/doc/html/boost/program_options/positiona_1_3_31_9_9_1_1_1.html) for `positional_options_description` says it has a `max_total_count` function that returns the number of positional arguments, and may return `numeric_limits::max` to indicate unlimited arguments. However, there is no way to determine the number of counted arguments.
Given an instance of `positional_options_description`, it is therefore impossible, for example, to print out a list of all positional arguments, stopping at the last, unlimited argument. A new member function that provides this is all you'd need to add, IMO.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with the linked positional_options_description documentation, then locate the class implementation and its existing tests in the program_options module. Check how max_total_count distinguishes unlimited arguments. Done means exposing the count of counted positional arguments and covering that behavior with tests and documentation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100