1
0
Fork 0

Fix comments

This commit is contained in:
Joris van Rantwijk 2022-06-24 15:14:51 +02:00
parent af0d74dc21
commit 9b303bb2f3
1 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,8 @@
* The program sorts these records in lexicographic order. * The program sorts these records in lexicographic order.
* *
* This program is optimized for short records, e.g. up to 20 bytes. * This program is optimized for short records, e.g. up to 20 bytes.
*
* Written by Joris van Rantwijk in 2022.
*/ */
@ -1692,13 +1694,15 @@ std::string get_default_tmpdir(void)
void usage() void usage()
{ {
fprintf(stderr, fprintf(stderr,
"\n"
"Sort fixed-length binary records.\n"
"\n" "\n"
"Usage: sortbin [options] inputfile outputfile\n" "Usage: sortbin [options] inputfile outputfile\n"
"\n" "\n"
"Options:\n" "Options:\n"
"\n" "\n"
" -s, --size=N specify record size of N bytes (required)\n" " -s, --size=N specify record size of N bytes (required)\n"
" -u, --unique eleminate duplicates after sorting\n" " -u, --unique eliminate duplicates after sorting\n"
" --memory=M use at most M MByte RAM (default: %d)\n" " --memory=M use at most M MByte RAM (default: %d)\n"
" --branch=B merge at most B arrays in one step (default: %d)\n" " --branch=B merge at most B arrays in one step (default: %d)\n"
" --temporary-directory=DIR write temporary file to the specified\n" " --temporary-directory=DIR write temporary file to the specified\n"