New submission from Andrew <andrew-ara...@yandex.ru>:

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)?

----------
components: Library (Lib)
messages: 380076
nosy: Andrew
priority: normal
severity: normal
status: open
title: Argparse: wildcards processing
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42220>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to