> 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
- [hackers] [dwm][PATCH] Do not call die() upon '-v' invocati... Klemens Nanni
- Re: [hackers] [dwm][PATCH] Do not call die() upon '-v'... Ali H. Fardan
- Re: [hackers] [dwm][PATCH] Do not call die() upon ... Ali H. Fardan
- Re: [hackers] [dwm][PATCH] Do not call die() u... Quentin Rameau
- Re: [hackers] [dwm][PATCH] Do not call die... Ali H. Fardan
- Re: [hackers] [dwm][PATCH] Do not cal... quinq
- Re: [hackers] [dwm][PATCH] Do not cal... Martin Kühne
- Re: [hackers] [dwm][PATCH] Do not... David Phillips
- Re: [hackers] [dwm][PATCH] Do not call die() upon '-v'... Laslo Hunhold
- Re: [hackers] [dwm][PATCH] Do not call die() upon ... Quentin Rameau
- Re: [hackers] [dwm][PATCH] Do not call die() upon ... Klemens Nanni