diff --git a/core/dictgen/src/rootcling_impl.cxx b/core/dictgen/src/rootcling_impl.cxx index 59a2bfaca1ff0aac387930e0990df61a186f74e1..db848343734907fd9d1ab8aa9573b5449c5bd671 100644 --- a/core/dictgen/src/rootcling_impl.cxx +++ b/core/dictgen/src/rootcling_impl.cxx @@ -3830,7 +3830,7 @@ int RootClingMain(int argc, fprintf(stderr, shortHelp, argv[0]); - fprintf(stderr, "For more extensive help type: %s -h\n", argv[0]); + fprintf(stderr, "For more extensive help type: %s --help\n", argv[0]); return 1; } @@ -3923,14 +3923,13 @@ int RootClingMain(int argc, ignoreExistingDict = true; ic++; } else if (argc > 1 && (!strcmp(argv[1], "-?") || !strcmp(argv[1], "-h"))) { - fprintf(stderr, shortHelp); + fprintf(stderr, "%s\n", shortHelp); return 1; } else if (argc > 1 && !strcmp(argv[1], "--help")) { fprintf(stderr, kCommandLineOptionsHelp); return 1; } else if (ic < argc && !strncmp(argv[ic], "-", 1)) { - fprintf(stderr, shortHelp, - argv[0]); + fprintf(stderr, "%s\n", shortHelp); fprintf(stderr, "Only one verbose flag is authorized (one of -v, -v0, -v1, -v2, -v3, -v4)\n" "and must be before the -f flags\n"); fprintf(stderr, "For more extensive help type: %s --help\n", argv[0]);