cgo

[Fork] Gopher Client
git clone https://git.jojolepro.com/cgo.git
Log | Files | Refs | README | LICENSE

commit bfb5a8a505b8472dd9fe2a5ac90cce360f5d3cda
parent 1da16390a42a8b1a1672392ff442c401f6674a4b
Author: Sebastian Steinhauer <s.steinhauer@yahoo.de>
Date:   Thu, 16 Oct 2014 13:03:41 +0200

Fixed usage message

Diffstat:
Mcgo.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cgo.c b/cgo.c @@ -61,7 +61,7 @@ char parsed_host[512], parsed_port[64], parsed_selector[1024]; void usage() { - fputs("usage: cgo [-h host] [-p port] [-s selector] [-v] [-H]\n", + fputs("usage: cgo [-h host] [-p port] [-s selector] [-v] [-H] [gopher URI]\n", stderr); exit(EXIT_SUCCESS); } @@ -569,6 +569,7 @@ int main(int argc, char *argv[]) host = DEFAULT_HOST; port = DEFAULT_PORT; selector = DEFAULT_SELECTOR; + /* parse command line */ for (i = 1; i < argc; i++) { if (argv[i][0] == '-') switch(argv[i][1]) { case 'H':