Bug 706358 - Wrong syntax of --help option in spout.cpp and drain.cpp
Summary: Wrong syntax of --help option in spout.cpp and drain.cpp
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 2.0
Hardware: All
OS: All
low
low
Target Milestone: 2.1
: ---
Assignee: Gordon Sim
QA Contact: Frantisek Reznicek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-20 08:33 UTC by Pavel Moravec
Modified: 2015-11-16 01:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-07 17:42:19 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Pavel Moravec 2011-05-20 08:33:41 UTC
Description of problem:
spout.cpp and drain.cpp in qpid-0.10/cpp/examples/messaging/ has wrong syntax of --connection-options parameter help:

spout.cpp:68:        add("connection-options", connectionOptions, "connection options string in the form {name1=value1, name2=value2}");
drain.cpp:53:        add("connection-options", connectionOptions, "connection options string in the form {name1=value1, name2=value2}");

While the correct syntax is {name1:value1, name2:value2} (i.e. replace '=' by ':' there)

Version-Release number of selected component (if applicable):
any

How reproducible:
100%

Steps to Reproduce:
1. Compile spout.cpp and drain.cpp from qpid C++ examples
2. ./spout --help
3. ./drain --help
  
Actual results:
output has line:
--connection-options VALUE    connection options string in the form {name1=value1, name2=value2}

Expected results:
output should have line:
--connection-options VALUE    connection options string in the form {name1:value1, name2:value2}

Additional info:

Comment 1 Gordon Sim 2011-05-20 09:42:11 UTC
Fixed upstream: http://svn.apache.org/viewvc?view=rev&rev=1125295

Comment 2 Ted Ross 2012-03-29 19:51:22 UTC
This was in the 0.14 rebase.

Comment 3 Frantisek Reznicek 2012-03-30 07:46:39 UTC
Issue fixed, tested on rhel5.8 / 6.2 i/x on packages:
qpid-cpp-client-devel-0.14-14.el5
qpid-cpp-client-devel-0.14-12.el6

CLOSED/CRELEASE -> ASSIGNED -> ON_QA -> VERIFIED


Note You need to log in before you can comment on or make changes to this bug.