From e73d594374375a92910672e5e93a3669a7e7566a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Fri, 16 Jan 2026 14:35:44 +0000 Subject: [PATCH] doc: highlight -HLP options * src/system.h (emit_symlink_recurse_options): Highlight -HLP, for chmod, chcon etc. --- src/system.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/system.h b/src/system.h index 1d52f6300..68d3e2d45 100644 --- a/src/system.h +++ b/src/system.h @@ -710,22 +710,31 @@ the VERSION_CONTROL environment variable. Here are the values:\n\ "), stdout); } +#define emit_symlink_recurse_options(default_opt) \ + emit_symlink_recurse_options_ (PROGRAM_NAME, default_opt) static inline void -emit_symlink_recurse_options (char const *default_opt) +emit_symlink_recurse_options_ (char const* program, char const *default_opt) { printf (_("\ \n\ The following options modify how a hierarchy is traversed when the -R\n\ option is also specified. If more than one is specified, only the final\n\ one takes effect. %s is the default.\n\ -\n\ - -H if a command line argument is a symbolic link\n\ - to a directory, traverse it\n\ - -L traverse every symbolic link to a directory\n\ - encountered\n\ - -P do not traverse any symbolic links\n\ \n\ "), default_opt); + oputs_ (program, _("\ + -H\n\ + if a command line argument is a symlink to a directory, traverse it\n\ +")); + oputs_ (program, _("\ + -L\n\ + traverse every symbolic link to a directory encountered\n\ +")); + oputs_ (program, _("\ + -P\n\ + do not traverse any symbolic links\n\ +\n\ +")); } static inline void