X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2Fmain.c;h=39b6cd5dc5f55ca1ba2c92cf347eb0b4575586e2;hb=94a28d11cee6db33d9c456b395ed59f2631b08e5;hp=9f0acda95e1f0813be7cdde9d32babb3957505de;hpb=1dfc0dbf2c48d2d445c7514af4081de5c96b875e;p=smdp.git diff --git a/src/main.c b/src/main.c index 9f0acda..39b6cd5 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ /* * mdp -- A command-line based markdown presentation tool. - * Copyright (C) 2015 Michael Goehler + * Copyright (C) 2016 Michael Goehler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,6 +36,7 @@ void usage() { fprintf(stderr, "%s", " -i, --invert swap black and white color\n"); fprintf(stderr, "%s", " -t, --notrans disable transparency in transparent terminal\n"); fprintf(stderr, "%s", " -s, --noslidenum do not show slide number at the bottom\n"); + fprintf(stderr, "%s", " -v, --version display the version number and license\n"); fprintf(stderr, "%s", " -x, --noslidemax show slide number, but not total number of slides\n"); fprintf(stderr, "%s", "\nWith no FILE, or when FILE is -, read standard input.\n\n"); exit(EXIT_FAILURE); @@ -43,7 +44,7 @@ void usage() { void version() { printf("mdp %d.%d.%d\n", MDP_VER_MAJOR, MDP_VER_MINOR, MDP_VER_REVISION); - printf("Copyright (C) 2015 Michael Goehler\n"); + printf("Copyright (C) 2016 Michael Goehler\n"); printf("License GPLv3+: GNU GPL version 3 or later .\n"); printf("This is free software: you are free to change and redistribute it.\n"); printf("There is NO WARRANTY, to the extent permitted by law.\n"); @@ -94,6 +95,9 @@ int main(int argc, char *argv[]) { // UTF-8 characters if the system supports it setlocale(LC_CTYPE, ""); + // setup list string + setup_list_strings(); + // open file or set input to STDIN char *file = NULL; FILE *input;