Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1096951

Summary: Unable to display usage information for perl example send.pl
Product: Red Hat Enterprise MRG Reporter: Ernie <eallen>
Component: qpid-protonAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED UPSTREAM QA Contact: Messaging QE <messaging-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: DevelopmentCC: jross, pematous
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fixes a few problem displaying usage text
none
Patch that fixes the -h issue and exits when help is shown. none

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

Comment 11 Red Hat Bugzilla 2025-02-10 03:35:49 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.