changed info options, added example to readme

This commit is contained in:
Martchus 2015-09-24 00:22:49 +02:00
parent cbf5ce624b
commit 70b4100cc2
2 changed files with 7 additions and 2 deletions

View File

@ -44,6 +44,11 @@ tageditor get title album artist --files /some/dir/*.m4a
```
Displays title, album and artist of all *.m4a files in the specified directory.
```
tageditor info --files /some/dir/*.m4a
```
Displays technical information about all *.m4a files in the specified directory.
```
tageditor set "title=Title of "{1st,2nd,3rd}" file" "title=Title of "{4..16}"th file" \
"album=The Album" "artist=The Artist" \

View File

@ -56,7 +56,7 @@ int main(int argc, char *argv[])
Argument printFieldNamesArg("print-field-names", string(), "prints available field names");
printFieldNamesArg.setCallback(Cli::printFieldNames);
// display general file info
Argument displayFileInfoArg("display-file-info", "file-info", "displays general file information");
Argument displayFileInfoArg("display-file-info", "info", "displays general file information");
displayFileInfoArg.setDenotesOperation(true);
displayFileInfoArg.setCallback(std::bind(Cli::displayFileInfo, _1, std::cref(filesArg), std::cref(verboseArg)));
displayFileInfoArg.setSecondaryArguments({&filesArg, &verboseArg});
@ -107,7 +107,7 @@ int main(int argc, char *argv[])
Argument validateArg("validate", "c", "validates the file integrity as accurately as possible; the structure of the file will be parsed completely");
validateArg.setDenotesOperation(true);
validateArg.setCombinable(true);
Argument genInfoArg("gen-info", "info", "generates technical information about the specified file as HTML document");
Argument genInfoArg("html-info", string(), "generates technical information about the specified file as HTML document");
genInfoArg.setDenotesOperation(true);
genInfoArg.setSecondaryArguments({&fileArg, &validateArg, &outputFileArg});
genInfoArg.setCallback(std::bind(Cli::generateFileInfo, _1, std::cref(fileArg), std::cref(outputFileArg), std::cref(validateArg)));