Project

General

Profile

Actions

Bug #459

closed

babeltrace ignores -w, --output option

Added by Daniel U. Thibault about 11 years ago. Updated about 11 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