diff options
Diffstat (limited to 'lali.c')
| -rw-r--r-- | lali.c | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -41,6 +41,7 @@ #define YEARS "2025, 2026" +#define SOURCE_URL "https://gitlab.com/alexandre1985/lali/" // MAIN /////////////////////////////////////////////////////////////////////// @@ -134,7 +135,7 @@ int main(int argc, char *argv[]) { case 'h': /* Show help message. */ - fprintf(stdout, "basic usages:\n\ + fprintf(stdout, ">>> basic usages >>\n\ normal: %s [file-name]...\n\ run repl: %s -r|--repl [-q|--quiet] [file-name]...\n\ close stdin: %s -c|--close [file-name]...\n\ @@ -142,9 +143,10 @@ show help: %s -h|--help\n\ \n\ in normal mode, reads from standard input.\n\ when present, load file-name(s) at startup. can be used as library file-name(s).\n\ +you may use unambiguous abbreviations for the long option names.\n\ \n\ -you may use unambiguous abbreviations for the long option names.\n", - argv[0], argv[0], argv[0], argv[0]); +source code at %s .\n", + argv[0], argv[0], argv[0], argv[0], SOURCE_URL); return EXIT_SUCCESS; case 'c': @@ -208,7 +210,13 @@ you may use unambiguous abbreviations for the long option names.\n", } if (!opt_quiet) - fprintf(stdout, "lali Copyright (C) %s Daniel Cerqueira\n\nThis is free software: you are free to change and redistribute it,\nunder certain conditions.\nThis program comes with NO WARRANTY, to the extent permitted by law.\n", YEARS); + fprintf(stdout, "lali Copyright (C) %s Daniel Cerqueira\n\ +\n\ +This is free software: you are free to change and redistribute it,\n\ +under certain conditions.\n\ +This program comes with NO WARRANTY, to the extent permitted by law.\n\ +\n\ +Source code at %s .\n", YEARS, SOURCE_URL); runREPL(STDIN_FILENO, gcEnv, GC_ROOTS); } |
