package command: De-wrap help lines.

Now that the coding style limit is 100. Slight tweaks as well.
This commit is contained in:
Augustin Cavalier 2021-10-26 15:44:51 -04:00
parent 3d4e153c9f
commit 04a7f3ede0

View File

@ -26,14 +26,11 @@ static const char* kUsage =
" add [ <options> ] <package> <entries>...\n"
" Adds the specified entries <entries> to package file <package>.\n"
"\n"
" -0 ... -9 - Use compression level 0 ... 9. 0 means no, 9 best "
"compression.\n"
" -0 ... -9 - Use compression level 0 ... 9. 0 means no, 9 best compression.\n"
" Defaults to 9.\n"
" -C <dir> - Change to directory <dir> before adding entries.\n"
" -f - Force adding, replacing already existing entries. "
"Without\n"
" this option adding will fail when encountering a "
"pre-exiting\n"
" -f - Force adding, replacing already existing entries. Without\n"
" this option adding will fail when encountering a pre-exiting\n"
" entry (directories will be merged, though).\n"
" -i <info> - Use the package info file <info>. It will be added as\n"
" \".PackageInfo\", overriding a \".PackageInfo\" file,\n"
@ -42,35 +39,29 @@ static const char* kUsage =
" -v - Be verbose (show more info about created package).\n"
"\n"
" checksum [ <options> ] [ <package> ]\n"
" Computes the checksum of package file <package>. If <package> is "
"omitted\n"
" or \"-\", the file is read from stdin. This is only supported, if the "
"package\n"
" Computes the checksum of package file <package>. If <package> is omitted\n"
" or \"-\", the file is read from stdin. This is only supported, if the package\n"
" is uncompressed.\n"
"\n"
" -q - Be quiet (don't show any output except for errors).\n"
" -v - Be verbose (show more info about created package).\n"
" -z - Use Zstd compression.\n"
"\n"
" create [ <options> ] <package>\n"
" Creates package file <package> from contents of current directory.\n"
"\n"
" -0 ... -9 - Use compression level 0 ... 9. 0 means no, 9 best "
"compression.\n"
" -0 ... -9 - Use compression level 0 ... 9. 0 means no, 9 best compression.\n"
" Defaults to 9.\n"
" -b - Create an empty build package. Only the .PackageInfo "
"will\n"
" -b - Create an empty build package. Only the .PackageInfo will\n"
" be added.\n"
" -C <dir> - Change to directory <dir> before adding entries.\n"
" -i <info> - Use the package info file <info>. It will be added as\n"
" \".PackageInfo\", overriding a \".PackageInfo\" file,\n"
" existing.\n"
" -I <path> - Set the package's installation path to <path>. This is\n"
" an option only for use in package building. It will "
"cause\n"
" the package .self link to point to <path>, which is "
"useful\n"
" an option only for use in package building. It will cause\n"
" the package .self link to point to <path>, which is useful\n"
" to redirect a \"make install\". Only allowed with -b.\n"
" -z - Use Zstd compression.\n"
" -q - Be quiet (don't show any output except for errors).\n"
" -v - Be verbose (show more info about created package).\n"
"\n"
@ -79,11 +70,9 @@ static const char* kUsage =
"\n"
" extract [ <options> ] <package> [ <entries>... ]\n"
" Extracts the contents of package file <package>. If <entries> are\n"
" specified, only those entries are extracted (directories "
"recursively).\n"
" specified, only those entries are extracted (directories recursively).\n"
"\n"
" -C <dir> - Change to directory <dir> before extracting the "
"contents\n"
" -C <dir> - Change to directory <dir> before extracting the contents\n"
" of the archive.\n"
" -i <info> - Extract the .PackageInfo file to <info> instead.\n"
"\n"
@ -116,12 +105,11 @@ static const char* kUsage =
" If the input files doesn't use compression <input package>\n"
" can be \"-\", in which case the data are read from stdin.\n"
"\n"
" -0 ... -9 - Use compression level 0 ... 9. 0 means no, 9 best "
"compression.\n"
" -0 ... -9 - Use compression level 0 ... 9. 0 means no, 9 best compression.\n"
" Defaults to 9.\n"
" -z - Use Zstd compression.\n"
" -q - Be quiet (don't show any output except for errors).\n"
" -v - Be verbose (show more info about created package).\n"
" -z - Use Zstd compression.\n"
"\n"
"Common Options:\n"
" -h, --help - Print this usage info.\n"