This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Argparse: wildcards processing
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.10, Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Andrew
Priority: normal Keywords:

Created on 2020-10-31 16:02 by Andrew, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg380076 - (view) Author: Andrew (Andrew) Date: 2020-10-31 16:02
It's known that Linux and Windows shells process wildcards like '*' and '?' differently. Linux shell usually expands wildcards so the application gets list of files. In contrast, Windows passes the wildcards to application. So in cross-platform applications we have to expand wildcards manually only for windows. It may not be beautiful since it's usually not part of program's logic and seems kinda of arguments processing.
Could this problem be solved via adding optional functionality to argparse library? For instance some option 'expand_wildcards' in ArgumentParser constructor with default value False (in order to not break compatibility)?
History
Date User Action Args
2022-04-11 14:59:37adminsetgithub: 86386
2020-10-31 16:02:56Andrewcreate