diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-12 15:00:17 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-12 15:00:17 +0800 |
commit | b525cc4808cbbe68132e5941187030d3dd38abc2 (patch) | |
tree | e90d3e160657b33e11606813cbb84ec181f1f845 /main.cpp | |
parent | 4e933956abb5045efaad4b68decce1ca4bd43700 (diff) |
Removed uncessary `new UnspecObj()`, use a global pointer instead.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 { |