Change `--java-script` to just `--script`

This should be specific enough in this context and is more consistent with
`--script-settings`.
This commit is contained in:
Martchus 2023-08-19 00:18:27 +02:00
parent 9a7108fe58
commit d26a7afc47
2 changed files with 3 additions and 3 deletions

View File

@ -346,7 +346,7 @@ Here are some Bash examples which illustrate getting and setting tag information
* Sets fields by running a script to compute changes dynamically:
```
tageditor set --pedantic debug --java-script path/to/script.js -f foo.mp3
tageditor set --pedantic debug --script path/to/script.js -f foo.mp3
```
- This feature is still experimental. The script API is still subject to change.

View File

@ -85,8 +85,8 @@ SetTagInfoArgs::SetTagInfoArgs(Argument &filesArg, Argument &verboseArg, Argumen
, preserveModificationTimeArg("preserve-modification-time", '\0', "preserves the file's modification time")
, preserveMuxingAppArg("preserve-muxing-app", '\0', "preserves the file's muxing app meta-data value")
, preserveWritingAppArg("preserve-writing-app", '\0', "preserves the file's writing app meta-data value")
, jsArg("java-script", 'j', "modifies tag fields via the specified JavaScript", { "path" })
, jsSettingsArg("script-settings", '\0', "passes settings to the JavaScript specified via --java-script", { "key=value" })
, jsArg("script", 'j', "modifies tag fields via the specified JavaScript", { "path" })
, jsSettingsArg("script-settings", '\0', "passes settings to the JavaScript specified via --script", { "key=value" })
, setTagInfoArg("set", 's', "sets the specified tag information and attachments")
{
docTitleArg.setRequiredValueCount(Argument::varValueCount);