Bug 1096951 - Unable to display usage information for perl example send.pl
Summary: Unable to display usage information for perl example send.pl
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-proton
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: Messaging QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-12 18:43 UTC by Ernie
Modified: 2021-11-14 22:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fixes a few problem displaying usage text (738 bytes, patch)
2014-05-12 19:18 UTC, Ernie
no flags Details | Diff
Patch that fixes the -h issue and exits when help is shown. (1.30 KB, patch)
2014-06-12 19:39 UTC, Darryl L. Pierce
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA PROTON-604 0 None None None Never

Description Ernie 2014-05-12 18:43:18 UTC
Description of problem:
Attempting to display usage information for send.pl display an error message

Version-Release number of selected component (if applicable):
proton-0.7 perl bindings

How reproducible:
100%

Steps to Reproduce:
source config.sh
cd examples/messenger/perl
./send.pl -h

Actual results:
Unknown option: h
Undefined subroutine &main::usage called at ./send.pl line 41.

Expected results:
Two released issues here:
1. the -h option is not supported
2. when an unknown option is supplied an error "Undefined subroutine ..." is displayed

Additional info:

Comment 1 Ernie 2014-05-12 19:18:43 UTC
Created attachment 894867 [details]
Fixes a few problem displaying usage text

- Adds -h option
- Exits after usage is displayed
- Calls correct usage subroutine
- Adds newline after last usage line

Comment 2 Justin Ross 2014-06-10 13:30:59 UTC
Does this have a jira?

Comment 3 Darryl L. Pierce 2014-06-12 19:23:58 UTC
(In reply to Justin Ross from comment #2)
> Does this have a jira?

I've created PROTON-604.

Comment 4 Darryl L. Pierce 2014-06-12 19:39:01 UTC
This is fixed upstream in the following commit:

https://svn.apache.org/viewvc?view=revision&revision=r1602276

I've also attached the patch to this BZ.

Comment 5 Darryl L. Pierce 2014-06-12 19:39:42 UTC
Created attachment 908269 [details]
Patch that fixes the -h issue and exits when help is shown.

Comment 7 Mike McCune 2016-03-28 23:40:50 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions


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