Project

General

Profile

Actions

Bug #459

closed

babeltrace ignores -w, --output option

Added by Daniel U. Thibault almost 12 years ago. Updated almost 12 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/22/2013
Due date:
% Done:

0%

Estimated time:

Description

Currently, babeltrace ignores the -w, --output option.

This turns out to be caused by this snippet of babeltrace.c (lines ~110-113):

static struct poptOption long_options[] = {
    /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
    { "output", 'w', POPT_ARG_STRING, NULL, OPT_NONE, NULL, NULL },
    { "input-format", 'i', POPT_ARG_STRING, NULL, OPT_INPUT_FORMAT, NULL, NULL },

which should instead be:

static struct poptOption long_options[] = {
    /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
    { "output", 'w', POPT_ARG_STRING, NULL, OPT_OUTPUT_PATH, NULL, NULL },
    { "input-format", 'i', POPT_ARG_STRING, NULL, OPT_INPUT_FORMAT, NULL, NULL },
Actions

Also available in: Atom PDF