argdirective-0.0.9rc1
توضیحات
Argdirective is a python module to detect the first command line argument as subcommand.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | argdirective-0.0.9rc1 |
| نام | argdirective |
| نسخه کتابخانه | 0.0.9rc1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dominik Kummer |
| ایمیل نویسنده | admin@arkades.org |
| آدرس صفحه اصلی | https://gitlab.com/domsonAut/argdirective |
| آدرس اینترنتی | https://pypi.org/project/argdirective/ |
| مجوز | - |
# The argdirective project
Argdirective is a simple module which takes the first argument passed to your python script as subcommand and tries to find a directive module based on the basename of the script.
Example:
`script.py subcommand --arg1 --arg2`
Consider the following module:
```
site-packages
│ ...
│
└───configmount
│ │ mount
```
as well as the following executable script `/bin/configmount`
```python
#!/bin/python
import argdirective
if __name__ == "__main__":
argdirective.generator.run()
```
If you run `configmount mount --root /etc /mnt/configmount` in your terminal argdirective will lookup the configmount package and redirect the arguments to the module mount. See the [configmount project](https://gitlab.com/domsonAut/configmount) for more details.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl argdirective-0.0.9rc1:
pip install argdirective-0.0.9rc1.whl
نصب پکیج tar.gz argdirective-0.0.9rc1:
pip install argdirective-0.0.9rc1.tar.gz