From 5aad21f07819a625c9865bafd5a566f20a433278 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Mon, 3 Jul 2017 19:21:45 +0200 Subject: Always show version/copyright header Also update website URL to HTTPS --- src/odr-padenc.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/odr-padenc.cpp') diff --git a/src/odr-padenc.cpp b/src/odr-padenc.cpp index 8a873fa..091cf5c 100644 --- a/src/odr-padenc.cpp +++ b/src/odr-padenc.cpp @@ -57,19 +57,22 @@ static void break_handler(int) { } -static void usage(const char* name) { - fprintf(stderr, "DAB PAD encoder %s for MOT Slideshow and DLS\n\n" +static void header() { + fprintf(stderr, "ODR-PadEnc %s - DAB PAD encoder for MOT Slideshow and DLS\n\n" "By CSP Innovazione nelle ICT s.c.a r.l. (http://rd.csp.it/) and\n" "Opendigitalradio.org\n\n" "Reads image data from the specified directory, DLS text from a file,\n" "and outputs PAD data to the given FIFO.\n" - " http://opendigitalradio.org\n\n", + " https://opendigitalradio.org\n\n", #if defined(GITVERSION) GITVERSION #else PACKAGE_VERSION #endif ); +} + +static void usage(const char* name) { fprintf(stderr, "Usage: %s [OPTIONS...]\n", name); fprintf(stderr, " -d, --dir=DIRNAME Directory to read images from.\n" " -e, --erase Erase slides from DIRNAME once they have\n" @@ -170,6 +173,8 @@ int main(int argc, char *argv[]) { std::vector dls_files; int curr_dls_file = 0; + header(); + const struct option longopts[] = { {"charset", required_argument, 0, 'c'}, {"raw-dls", no_argument, 0, 'C'}, -- cgit v1.2.3