From 4c487f3f0a377f15636a3041a0dda9b04d851c77 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Oct 2023 08:21:54 -0400 Subject: main: Combine help and license puts() calls --- (limited to 'src') diff --git a/src/main.c b/src/main.c index 3ce51dc..51a8a58 100644 --- a/src/main.c +++ b/src/main.c @@ -66,15 +66,16 @@ static void _print_help(const char *program_name) { _print_usage(stdout, program_name); - puts("Options:"); #if defined(HAVE_GETOPT_LONG) && HAVE_GETOPT_LONG - puts("\t-F, --list-formats List all supported date and time formats"); - puts("\t-h, --help Show this help information"); - puts("\t-V, --version Show version information"); + puts(_("Options:\n" + "\t-F, --list-formats List all supported date and time formats\n" + "\t-h, --help Show this help information\n" + "\t-V, --version Show version information")); #else - puts("\t-F List all supported date and time formats"); - puts("\t-h Show this help information"); - puts("\t-V Show version information"); + puts(_("Options:\n" + "\t-F List all supported date and time formats\n" + "\t-h Show this help information\n" + "\t-V Show version information")); #endif } @@ -142,12 +143,11 @@ static void _print_version(void) { printf("@ (atsign) %s%s\n", PACKAGE_VERSION, PACKAGE_VERSION_GIT); - puts("Copyright (C) 2021, 2022 P. J. McDermott"); - puts("License GPLv3+: GNU GPL version 3 or later " - "."); - puts("This is free software: you are free to change and redistribute " - "it."); - puts("There is NO WARRANTY, to the extent permitted by law.\n"); + puts("Copyright (C) 2021, 2022 P. J. McDermott\n" + "License GPLv3+: GNU GPL version 3 or later " + ".\n" + "This is free software: you are free to change and redistribute it.\n" + "There is NO WARRANTY, to the extent permitted by law.\n"); printf("Please report bugs to <%s>.\n", PACKAGE_BUGREPORT); } -- cgit v0.9.1