Re: [PATCH 6/9] Make getopt_long handling more robust

2014-05-30 Thread Daniel Lezcano
On 05/29/2014 12:17 AM, Amit Kucheria wrote: Adding ':' as first character of optstring to getopt_long allows separating error message for invalid option and invalid option arguments Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- idlestat.c | 15 ++- 1 file change

[PATCH 6/9] Make getopt_long handling more robust

2014-05-28 Thread Amit Kucheria
Adding ':' as first character of optstring to getopt_long allows separating error message for invalid option and invalid option arguments Signed-off-by: Amit Kucheria --- idlestat.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/idlestat.c b/idlestat.c index