zramctl: improve usage() output
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
ee16b9ff45
commit
93f1c0fa1d
|
@ -547,7 +547,7 @@ static void __attribute__((__noreturn__)) usage(void)
|
|||
fputs(_("Set up and control zram devices.\n"), out);
|
||||
|
||||
fputs(USAGE_OPTIONS, out);
|
||||
fputs(_(" -a, --algorithm lzo|lz4|lz4hc|deflate|842|zstd compression algorithm to use\n"), out);
|
||||
fputs(_(" -a, --algorithm <alg> compression algorithm to use\n"), out);
|
||||
fputs(_(" -b, --bytes print sizes in bytes rather than in human readable format\n"), out);
|
||||
fputs(_(" -f, --find find a free device\n"), out);
|
||||
fputs(_(" -n, --noheadings don't print headings\n"), out);
|
||||
|
@ -564,6 +564,9 @@ static void __attribute__((__noreturn__)) usage(void)
|
|||
fputs(USAGE_ARGUMENTS, out);
|
||||
printf(USAGE_ARG_SIZE(_("<size>")));
|
||||
|
||||
fputs(_(" <alg> specify algorithm, supported are:\n"), out);
|
||||
fputs(_(" lzo, lz4, lz4hc, deflate, 842 and zstd\n"), out);
|
||||
|
||||
fputs(USAGE_COLUMNS, out);
|
||||
for (i = 0; i < ARRAY_SIZE(infos); i++)
|
||||
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
|
||||
|
|
Loading…
Reference in New Issue