Skip to contentSkip to conversation

main: 'quiet' option does not take an argument

PATCH Applied Namhyung Kim 3 participants 3 messages Jan 14, 2013 – Jan 31, 2013

lore
Share & tools
lore

Namhyung Kim

author
#0 lore raw

PATCH 1/1 main: 'quiet' option does not take an argument

Signed-off-by Namhyung Kim <namhyung(a)gmail.com>
---
 src/main.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/main.cpp +1 -1
index e6036ae..b22d11d 100644
@@ -77,7 +77,7 @@ static const struct option long_options[] =
 	{"time", optional_argument, NULL, 't'},
 	{"iteration", optional_argument, NULL, 'i'},
 	{"workload", optional_argument, NULL, 'w'},
-	{"quiet", optional_argument, NULL, 'q'},
+	{"quiet", no_argument, NULL, 'q'},
 	{NULL, 0, NULL, 0}
 };
 
Signature · 1 line
1.7.9.2
#1 lore raw
Quoted 10 lines · Namhyung Kim
Signed-off-by Namhyung Kim <namhyung(a)gmail.com>
---
 src/main.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/main.cpp +0 -0
index e6036ae..b22d11d 100644

src/main.cpp static const struct option long_options[] = · line 83

Quoted 8 lines
src/main.cpp +1 -1
@@ -77,7 +77,7 @@ static const struct option long_options[] =
 	{"time", optional_argument, NULL, 't'},
 	{"iteration", optional_argument, NULL, 'i'},
 	{"workload", optional_argument, NULL, 'w'},
-	{"quiet", optional_argument, NULL, 'q'},
+	{"quiet", no_argument, NULL, 'q'},
 	{NULL, 0, NULL, 0}
 };
 

looks good to me

	-ss
Applied
#2 lore raw
In reply to Namhyung Kim
Quoted 10 lines · On Mon, 14 Jan 2013 23:25:32 +0900 Namhyung Kim <namhyung(a)gmail.com> wrote:
Signed-off-by Namhyung Kim <namhyung(a)gmail.com>
---
 src/main.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/main.cpp +0 -0
index e6036ae..b22d11d 100644

src/main.cpp static const struct option long_options[] = · line 83

Quoted 8 lines
src/main.cpp +1 -1
@@ -77,7 +77,7 @@ static const struct option long_options[] =
 	{"time", optional_argument, NULL, 't'},
 	{"iteration", optional_argument, NULL, 'i'},
 	{"workload", optional_argument, NULL, 'w'},
-	{"quiet", optional_argument, NULL, 'q'},
+	{"quiet", no_argument, NULL, 'q'},
 	{NULL, 0, NULL, 0}
 };
 

Applied, thanks.

Kristen