Bug 706358

Summary: Wrong syntax of --help option in spout.cpp and drain.cpp
Product: Red Hat Enterprise MRG Reporter: Pavel Moravec <pmoravec>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: Frantisek Reznicek <freznice>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: esammons, freznice, gsim, mcressma, tross
Target Milestone: 2.1Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 17:42:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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