summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-07 16:42:41 +0100
committerJim Meyering <meyering@redhat.com>2012-01-07 16:42:41 +0100
commit22af6d97526e52e1fc14a86d811c92e421a67577 (patch)
treea7b4bbde9a809ddf0f931aee11eecc310d262428
parent1df91bd6b97616fe29cf9c5f17907a9237a3d2e2 (diff)
downloadcoreutils-22af6d97526e52e1fc14a86d811c92e421a67577.tar.xz
maint: factor out all `Try --help'-emitting statements
* src/system.h (emit_try_help): New function.
-rw-r--r--src/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 5f68af10a..ff88cb473 100644
--- a/src/system.h
+++ b/src/system.h
@@ -556,6 +556,12 @@ emit_ancillary_info (void)
"info coreutils '%s invocation'\n"), last_component (program_name));
}
+static inline void
+emit_try_help (void)
+{
+ fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name);
+}
+
#include "inttostr.h"
static inline char *