projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: remove empty line in lttng create command
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
start.c
diff --git
a/src/bin/lttng/commands/start.c
b/src/bin/lttng/commands/start.c
index 0287fc7e8cf144a4fee7b574862ae85f892561d9..65b2229245408efc5883ab2d0078dfe47b30a6fe 100644
(file)
--- a/
src/bin/lttng/commands/start.c
+++ b/
src/bin/lttng/commands/start.c
@@
-144,6
+144,7
@@
int cmd_start(int argc, const char **argv)
{
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
{
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
+ const char *leftover = NULL;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptReadDefaultConfig(pc, 0);
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptReadDefaultConfig(pc, 0);
@@
-164,6
+165,13
@@
int cmd_start(int argc, const char **argv)
opt_session_name = (char*) poptGetArg(pc);
opt_session_name = (char*) poptGetArg(pc);
+ leftover = poptGetArg(pc);
+ if (leftover) {
+ ERR("Unknown argument: %s", leftover);
+ ret = CMD_ERROR;
+ goto end;
+ }
+
/* Mi check */
if (lttng_opt_mi) {
writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
/* Mi check */
if (lttng_opt_mi) {
writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
This page took
0.025204 seconds
and
4
git commands to generate.