diff --git a/prism/src/prism/ngprism.c b/prism/src/prism/ngprism.c index 88ddd90a..430b8f54 100644 --- a/prism/src/prism/ngprism.c +++ b/prism/src/prism/ngprism.c @@ -691,6 +691,14 @@ int main(int argc, char *argv[], char *env[]) { nailgun_port = NAILGUN_PORT_DEFAULT; } + /* if executing just the ng client with no arguments or -h|--help, then + display usage and exit. Don't handle -h|--help if a command other than + ng or ng.exe was used, since the appropriate nail should then handle + --help. */ + if (argc > 1 && strcmp("stop", argv[1]) == 0) { + cmd = "ng-stop"; + } + /* if executing just the ng client with no arguments or -h|--help, then display usage and exit. Don't handle -h|--help if a command other than ng or ng.exe was used, since the appropriate nail should then handle