maint: factor out all `Try --help'-emitting statements
authorJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 15:42:41 +0000 (16:42 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 15:42:41 +0000 (16:42 +0100)
* src/system.h (emit_try_help): New function.

src/system.h

index 5f68af1..ff88cb4 100644 (file)
@@ -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 *