boostorg / boostorg/program_options
Support for <boost/std>::filesystem::path
- Lingua principale
- C++
- Stelle
- 136
- Fork
- 117
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Basically the same issue from the mailing list which is open since Boost 1.35: http://boost.2283326.n4.nabble.com/program-options-Problem-with-paths-that-have-spaces-td2576490.html
Problem: You cannot take a `*::filesystem::path` param that contains spaces.
Reason: BPO uses `lexical_casts` which uses stream extraction stopping on first whitespace
Possible solution: Special case for types having a ctor accepting a string and using that.
Related issue: https://github.com/boostorg/lexical_cast/issues/25 but won't be fixed there. Consider: `lexical_cast("\"/home/my user\"")` is considered OK but calling a program with `./foobar "\"/home/my user\""` is not OK. So this is a BPO issue
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with Boost.Program_options value parsing and read the linked mailing-list report plus lexical_cast issue #25 for the stated behavior. Trace how filesystem::path arguments are converted, then verify that paths containing spaces are accepted without changing the existing command-line handling; the payload names no source file or test to run.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100