From: ceriel Date: Mon, 12 Jan 1987 14:38:45 +0000 (+0000) Subject: Allow reading from standard input X-Git-Tag: release-5-5~5018 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9e528bef6f5e4094e9fc497e1be3607341df7b01;p=ack.git Allow reading from standard input --- diff --git a/util/ncgg/main.c b/util/ncgg/main.c index 5ab322b32..f0b992e4e 100644 --- a/util/ncgg/main.c +++ b/util/ncgg/main.c @@ -34,8 +34,11 @@ main(argc,argv) char **argv; { exit(-1); } filename = argv[1]; + } + else if (argc == 1) { + filename = ""; } else - error("Usage: %s [-c] [-d] [-v] table",argv[0]); + error("Usage: %s [-c] [-d] [-v] [table]",argv[0]); initemhash(); enterkeyw(); initnodes();