Metadata-Version: 2.1
Name: more-argparse
Version: 1.0.0.1
Summary: Extra types and actions for argparse
Home-page: https://github.com/gaming32/more-argparse
Author: Gaming32
Author-email: gaming32i64@gmail.com
License: License :: OSI Approved :: MIT License
Platform: UNKNOWN
Description-Content-Type: text/markdown

# Intro
## Getting Started
### Installing
First install with:
``` shell
$ python3 -m pip install more-argparse
```
### Importing
Then you import it with either:
``` python
import argparse
import margparse
```
or
``` python
from argparse import *
from margparse import *
```
It's important that you do the same for both.
### Checking the Contents of margparse
First, open a Python interactive session:
``` shell
$ python3
```
Then, import it and check the contents:
``` python
>>> import margparse
>>> dir(margparse)   
['GlobbingType', '__all__', '__author__', '__builtins__', '__cached__', '__contibutor__', '__doc__', '__file__', '__license__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__title__', '__version__', '_actions_all', '_common', '_types_all', 'actions', 'types']
```

## Have ideas for possible types or actions?
If you have ideas for more types or actions to be included in more-argparse, simply create an issue tagged "Feature Request" and enter your hopes and dreams for the type or action. If you have written a custom type or action in the past feel free to include the code in your issue. Better yet, include the code in the repository yourself and submit a pull request.

# Contents
## Types
### GlobbingType
If the argument is a glob, glob the argument and add each filename to a list as `basetype(filename)`, otherwise return `[basetype(argument)]`

#### Arguments

Name    | Type    | Description
------- | ------- | -----------
basetype | callable | see above; use case: `basetype=argparse.FileType('r')`
recursive | bool | passed to glob.glob

