getopts update

This commit is contained in:
upuv
2018-05-19 15:08:57 +10:00
parent 214dd5a46c
commit f976940798
2 changed files with 76 additions and 30 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ Thanks to kbabioch, this script has also been packaged in the [AUR](https://aur.
## Usage(s)
```
bash AAXtoMP3 [--flac] [--single] [AUTHCODE] <AAX INPUT_FILES>...
bash AAXtoMP3 [-f|--flac] [-s|--single] [-a|--authcode <AUTHCODE>] [-o|--output_dir <PATH>] <AAX INPUT_FILES>...
bash AAXtoM4A [AUTHCODE] <AAX INPUT_FILES>...
bash AAXtoM4B [AUTHCODE] <AAX INPUT_FILES>...
```
@@ -52,9 +52,9 @@ bash AAXtoM4B [AUTHCODE] <AAX INPUT_FILES>...
### Defaults
* Specifying the AUTHCODE.
In order of __precidence__.
1. __[AUTHCODE]__ The command line option. With the highest precidence.
1. __--authcode [AUTHCODE]__ The command line option. With the highest precidence.
2. __.authcode__ If this file is placed in the current working directory and contains only the authcode it is used if the above is not.
3. __~/.aaxto_config__ a global config file for all the tools. And is used as the default if none of the above are specified.
3. __~/.authcode__ a global config file for all the tools. And is used as the default if none of the above are specified.
Note: At least one of the above must be specified. The code must also match the encoding for the user that owns the AAX file(s).
## Anti-Piracy Notice