aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-07-03 19:21:45 +0200
committerStefan Pöschel <github@basicmaster.de>2017-07-03 19:22:07 +0200
commit5aad21f07819a625c9865bafd5a566f20a433278 (patch)
tree1d12c45b48ee58e08624d4f620091362dc919f51
parentc213d2184ae8c70933d93014f7398c0238a4b05d (diff)
downloadODR-PadEnc-5aad21f07819a625c9865bafd5a566f20a433278.tar.gz
ODR-PadEnc-5aad21f07819a625c9865bafd5a566f20a433278.tar.bz2
ODR-PadEnc-5aad21f07819a625c9865bafd5a566f20a433278.zip
Always show version/copyright header
Also update website URL to HTTPS
-rw-r--r--src/odr-padenc.cpp11
1 files changed, 8 insertions, 3 deletions
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<std::string> dls_files;
int curr_dls_file = 0;
+ header();
+
const struct option longopts[] = {
{"charset", required_argument, 0, 'c'},
{"raw-dls", no_argument, 0, 'C'},