Re: [hackers] [dwm][PATCH] Do not call die() upon '-v' invocation

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Sat, 29 Oct 2016 21:01:30 +0200

> I agree, but we should get rid of this EXIT_* stuff altogether.
> My proposal:
>
> if (argc == 2 && !strcmp("-v", argv[1])) {
> fputs("dwm-"VERSION, stdout);
> return 0;
> } else if (argc != 1)
> die("usage: dwm [-v]");
>
> What do you guys think about it?
I think you should use “puts("dwm-"VERSION);” ;p
Received on Sat Oct 29 2016 - 21:01:30 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 29 2016 - 21:12:15 CEST