Comments (2)
Seems like Windows has support for UTF-8 in main
since Windows Version 1903 (May 2019 Update) (MSDN link).
We might be able to use argparse on Windows with Unicode support without any extra changes to the library.
from argparse.
In past experience, Boost.Program_options (Sphinx docs) is the only library that allowed me to program wmain in real code. But Boost's choice is to template everything on character type while still supporting some
codecvt
conversions internally. Using onlywvalue
may work for some applications, but in generalwcommand_line_parser
is needed.
Changed argparse to handle wmain correctly, see this issue: #222
from argparse.
Related Issues (20)
- mutually_exclusive_group should also checked in parse_known_args
- is_subcommand_used doesn't work if same argument is added to parent and child
- Parser can't deal with optional argument with varying number of values, when it is just before first positional argument HOT 1
- Can the code parse arguments in format -key="some value with spaces" HOT 3
- Define optional argument with exactly 1 value, + default value
- In usage message, it feels strange to have a required argument in "Optional arguments" section
- Subparser example snippet can't work
- default_value must be called before store_into
- Tip: how to avoid 'cannot create directory: /usr/local/lib/cmake/argparse' errors in Termux
- Stop parsing options/flags at literal `--`
- Any alternative to boost::program_options::split_unix?
- `-Wrestrict` warning on Alpine 3.18, using GCC 12 and C++20, unclear if actual bug HOT 2
- Error messages on parsing failure could be clearer
- Feature request: subparser (hidden) aliases
- Implicit template type of 'present' is misleading.
- Feature suggestion: the help page should print the available choices when possible
- Allow setting dynamic sets of argument choices
- Arguments without value are allowed when default_value() is set HOT 3
- Arguments following another argument with explicit .choices() will incorrectly inherit the choices HOT 6
- CMake package configuration version check is too strict HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argparse.