Comments (2)
This is the correct behavior. What do you expect?
from cpython.
>>> p.print_usage()
usage: [-h] [--foo | --no-foo]
indicates that the options, --foo
and --no-foo
, are mutually exclusive.
I donβt believe it makes sense to pass the both.
from cpython.
Related Issues (20)
- Remove AST nodes deprecated since Python 3.8, with warnings since Python 3.12
- Python's audithook isn't called with Python 3.12 but within Jupyter Notebooks HOT 3
- Some environment variables are missing from `--help-env`
- Adjust deprecation warning re: testing truth value of `xml.etree.ElementTree.Element` HOT 6
- Add advanced debugging examples to pdb documentation HOT 4
- Cannot define global variables in .pdbrc HOT 6
- The `dataclasses` unit tests should record behavior of shadowed init vars HOT 1
- ``test_import`` crashes with a ``--forever`` option HOT 3
- Crash in freethreading when acquiring/releasing the GIL in a finalizer HOT 2
- Implement zipfile.Path.is_symlink HOT 1
- ProcessPoolExecutor executor manager thread crashes if task fails in some circumstances
- Improve pow(fraction.Fraction(), b, modulo) error message HOT 3
- str.find and re.search performance inconsistencies HOT 8
- Suggest marking ``test_free_threading.test_dict`` as a heavy-cpu test HOT 5
- mock.patch introspects original even when new_callable set
- Failed to inspect `__new__` and `__init_subclass__` methods generated by `warnings.deprecated` HOT 1
- [C API] Add PyUnicode_AsNativeFormat() and PyUnicode_AsNativeFormat(): import/export as native string format HOT 20
- Deprecate Py_IS_NAN/INFINITY/FINITE? HOT 8
- Python IDLE stops outputting a string on encountering a null character both for STDOUT and STDERR HOT 5
- test_import fails on Refleak buildbots: assertion failed HOT 4
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 cpython.