From 72852434fdad39629602c61c9e55ef5b00faaec5 Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Mon, 10 Nov 2008 13:10:07 +0000 Subject: libcgroup: Make cgconfigparser more verbose As per http://sourceforge.net/tracker/?func=detail&atid=1043649&aid=2128139&group_id=218421 cgconfigparser was not exiting silently for wrong usage. Let's let the user know they are using wrong syntax. Signed-off-by: Dhaval Giani Tested-by: Sudhir Kumar Acked-by: Balbir Singh git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@221 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- cgconfig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgconfig.c b/cgconfig.c index 6b59001..16ff63b 100644 --- a/cgconfig.c +++ b/cgconfig.c @@ -48,11 +48,13 @@ int main(int argc, char *argv[]) printf("return code = %d\n", ret); exit(3); } - break; + return 0; default: fprintf(stderr, "Invalid command line option\n"); break; } } + fprintf(stderr, "usage is %s