if (!mode || strcmp(mode, "auto") == 0)
return isatty(STDOUT_FILENO) ? true : false;
- errx(EXIT_FAILURE, _("invalid argument of --annotation: %s"), mode);
+ errx(EXIT_FAILURE, _("invalid argument of --annotate: %s"), mode);
}
/*
-*--annotation*[**=**_when_]::
-Adds an annotation to column header names which can be printed as a
-tooltip by supporting terminals. The optional _when_ argument can be
-*always*, *never*, or *auto*. If the argument is omitted, it defaults to
+*--annotate*[**=**_when_]::
+Adds an annotation to each column header name. Such an annotation can be shown
+as a tooltip by terminals that support this feature. The optional _when_ argument
+can be *always*, *never*, or *auto*. If the argument is omitted, it defaults to
*auto*, which means that annotations will only be used when the output
goes to a terminal.
fputs(_(" -T, --fstab <path> alternative file to /etc/fstab\n"), out);
fputs(_(" --show[=<columns>] display summary in definable table\n"), out);
fputs(_(" --output-all output all available columns\n"), out);
- fputs(_(" --annotation[=<when>] annotate columns with a tooltip (always|never|auto)\n"), out);
+ fputs(_(" --annotate[=<when>] annotate columns with a tooltip (always|never|auto)\n"), out);
fputs(_(" --noheadings don't print table heading (with --show)\n"), out);
fputs(_(" --raw use the raw output format (with --show)\n"), out);
fputs(_(" --bytes display swap size in bytes in --show output\n"), out);
{ "version", no_argument, NULL, 'V' },
{ "show", optional_argument, NULL, SHOW_OPTION },
{ "output-all", no_argument, NULL, OPT_LIST_TYPES },
- { "annotation", optional_argument, NULL, ANNOTATION_OPTION },
+ { "annotate", optional_argument, NULL, ANNOTATION_OPTION },
{ "noheadings", no_argument, NULL, NOHEADINGS_OPTION },
{ "raw", no_argument, NULL, RAW_OPTION },
{ "bytes", no_argument, NULL, BYTES_OPTION },