Merge pull request #162 from Artoria2e5/plutil-doc

plutil: Some documentation
Yes, some documentation is better than none :-)
This commit is contained in:
rfm 2020-11-12 17:11:51 +00:00 committed by GitHub
commit 8852c29aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 101 additions and 0 deletions

View file

@ -411,7 +411,25 @@ print_help(FILE *f)
GSPrintf(f, @"Accepted commands:\n");
GSPrintf(
f, @" -p\tPrints the plists in a human-readable form (GNUstep ASCII).\n");
GSPrintf(
f, @" -lint\tVerifies the plist can be parsed.\n");
GSPrintf(
f, @" -convert FMT\tConverts the plist to another format.\n");
GSPrintf(
f, @" -insert PATH KEY VALUE\tInsert KEY=VALUE to the object at PATH.\n");
GSPrintf(
f, @" -replace PATH KEY VALUE\tReplace KEY=VALUE for the object at PATH.\n");
GSPrintf(
f, @" -remove PATH KEY\tRemove KEY from the object at PATH.\n");
GSPrintf(
f, @" -extract PATH KEY\tExtract the KEY from the object at PATH.\n");
GSPrintf(f, @"Accepted options:\n");
GSPrintf(
f, @" -s\t(No effect.)\n");
GSPrintf(
f, @" -o OUTFILE\tOutput to the file given.\n");
GSPrintf(
f, @" -e OUTEXT\tOutput to a file with the given extension.\n")
}
typedef enum _Action