summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Cerqueira <dan.git@lispclub.com>2026-08-19 08:29:14 +0100
committerDaniel Cerqueira <dan.git@lispclub.com>2026-08-19 08:53:49 +0100
commit5b31d540e23cc9f7a6c9941f8615ab631b4d6477 (patch)
treea8e3fc1f02f5b7a051b50a7853315df8de5a9b76
parent738e53849d39db2cba7c7fd97dd74a64bcafe363 (diff)
update and --help and --repl messages
-rw-r--r--lali.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/lali.c b/lali.c
index 48d4731..bf8f0b4 100644
--- a/lali.c
+++ b/lali.c
@@ -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);
}