Metadata-Version: 2.1
Name: argparsedirs
Version: 0.1.2
Summary: Readable and Writeable dir action for argparse
Author-email: Martin Baláž <martin.balaz@trojsten.sk>
Project-URL: Homepage, https://github.com/sesquideus/argparsedirs
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: argparse>=1.0.0

This is a very simple action for argparse that allows
you to specify a readable or a writeable directory as an `argparse` action.
I found it on StackOverflow years ago and used it since then,
unfortunately I cannot find the original source now.

I guess it would be best to have this added directly into `argparse` anyway.

### Usage
Just import and use as an action:

    import argparse
    import argparsedirs

    argparser = argparse.ArgumentParser()

    argparser.add_argument('indir', action=argparsedirs.ReadableDir)
    argparser.add_argument('outdir', action=argparsedirs.WriteableDir)

    args = argparser.parse_args()
