New submission from Austin Scola <austinsc...@gmail.com>:

One of the types of arguments that I find myself most often passing to 
`argparse.ArgumentParser` is paths. I think that I am probably not alone in 
frequent usage of paths as arguments. Given this, it would be extremely helpful 
to have an `argparse.Action` in `argparse` or an type similar to `FileType` 
that converted the string to a path. A path type factory could also have an 
arguments to optionally check if the path exists, or is a directory, or other 
similar predicates.

----------
components: Library (Lib)
messages: 382542
nosy: ascola
priority: normal
severity: normal
status: open
title: Better path handling with argparse
type: enhancement

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

Reply via email to