From b525cc4808cbbe68132e5941187030d3dd38abc2 Mon Sep 17 00:00:00 2001 From: Teddy Date: Mon, 12 Aug 2013 15:00:17 +0800 Subject: Removed uncessary `new UnspecObj()`, use a global pointer instead. --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index e751dd3..78515a6 100644 --- a/main.cpp +++ b/main.cpp @@ -42,7 +42,7 @@ void print_help(const char *cmd) { " FILE \t\tload Scheme source code from FILE, and exit\n" "The above switches stop argument processing\n\n" " -l FILE \tload Scheme source code from FILE\n" - " -h display \tthis help and exit\n", cmd); + " -h, --help \tdisplay this help and exit\n", cmd); exit(0); } @@ -62,7 +62,8 @@ int main(int argc, char **argv) { print_help(*argv); } } - else if (strcmp(argv[i], "-h") == 0) + else if (strcmp(argv[i], "-h") == 0 || + strcmp(argv[i], "--help") == 0) print_help(*argv); else { -- cgit v1.2.3