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)
- Customize argument priority check
- Detect unknown subcommand HOT 1
- compiler complains line 686 when --Wall enabled HOT 2
- User-overridable implicit value for option HOT 2
- Adding mutually exclusive arguments HOT 1
- Report which option generates error HOT 6
- Unexpected behavior when using choices()
- Add custom help for mutually_exclusive arguments
- Ability to support defining K/V dictionary via arguments HOT 4
- [Windows] space in arg value between double quote are splitted like it was different arg HOT 1
- Support boolean argument with the form like '--enable-hack=true/false' HOT 3
- m_is_used not updated in parent of subcommand
- Segmentation fault on splitting string with .action HOT 3
- add_mutually_exclusive_group required in parent parser are not validated
- Support prefix style arguments
- mutually_exclusive arguments should able to add existing arguments.
- Incorrect help message for argparse::nargs_pattern::at_least_one HOT 1
- choices() method not working properly HOT 2
- 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
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.