add user define configs
This commit is contained in:
parent
31fdc04817
commit
a3cc6ba3ce
15
ffplayout/config/README.md
Normal file
15
ffplayout/config/README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Custom Configuration
|
||||||
|
|
||||||
|
Extend your arguments for using them in your custom extensions.
|
||||||
|
|
||||||
|
The file name must have the **argparse_** prefix. The content should look like:
|
||||||
|
|
||||||
|
```YAML
|
||||||
|
short: -v
|
||||||
|
long: --volume
|
||||||
|
help: set audio volume
|
||||||
|
```
|
||||||
|
|
||||||
|
At least **short** or **long** have to exist, all other parameters are optional. You can also extend the config, with keys which are exist in **ArgumentParser.add_argument()**.
|
||||||
|
|
||||||
|
**Every argument must have its own yaml file!**
|
3
ffplayout/config/argparse_volume.yml
Normal file
3
ffplayout/config/argparse_volume.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
short: -v
|
||||||
|
long: --volume
|
||||||
|
help: set audio volume
|
Loading…
x
Reference in New Issue
Block a user