diff options
author | P. J. McDermott <pj@pehjota.net> | 2023-10-06 08:21:54 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2023-10-06 09:05:31 (EDT) |
commit | 4c487f3f0a377f15636a3041a0dda9b04d851c77 (patch) | |
tree | 3671487bef96c58ac974708421ccb532afd32a55 /src | |
parent | 84a56a1f46e1c09775f533a5f335ddebdd74c92f (diff) | |
download | atsign-4c487f3f0a377f15636a3041a0dda9b04d851c77.zip atsign-4c487f3f0a377f15636a3041a0dda9b04d851c77.tar.gz atsign-4c487f3f0a377f15636a3041a0dda9b04d851c77.tar.bz2 |
main: Combine help and license puts() calls
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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 " - "<http://gnu.org/licenses/gpl.html>."); - 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 " + "<http://gnu.org/licenses/gpl.html>.\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); } |