Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 236443

Summary: dev-ruby/hoe-1.7.0 - Bad usage to sow command
Product: Gentoo Linux Reporter: cyril mougel <cyril.mougel>
Component: New packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED UPSTREAM    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description cyril mougel 2008-09-02 12:21:21 UTC
If you want see the help of sow command from hoe gem. You have a wired output :

shingara@slick ~ $ sow -h
usage: /usr/bin [-d|-t] [group] project
  -t = add project to subdir under 'trunk'
  -d = add project to subdir under 'dev'
You must supply a project name on the commandline


The usage is bad.

If you read in code :

/usr/lib/ruby/gems/1.8/gems/hoe-1.7.0/bin/sow

The usage use the  File.dirname($0) like know what command is use. But as it's a extern file that start sow command, there are an error in usage.

Reproducible: Always

Steps to Reproduce:
1. sow -h
2.
3.

Actual Results:  
shingara@slick ~ $ sow -h
usage: /usr/bin [-d|-t] [group] project
  -t = add project to subdir under 'trunk'
  -d = add project to subdir under 'dev'
You must supply a project name on the commandline

Expected Results:  
shingara@slick ~ $ sow -h
usage: /usr/bin/sow [-d|-t] [group] project
  -t = add project to subdir under 'trunk'
  -d = add project to subdir under 'dev'
You must supply a project name on the commandline
Comment 1 Hans de Graaff gentoo-dev Security 2008-09-02 17:11:04 UTC
Please file this bug upstream as it should be fixed there.

We can't currently fix this in Gentoo since we can't properly patch gems.