Bug 460736 - create_book command-line help is wrong
Summary: create_book command-line help is wrong
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-30 16:33 UTC by Jared Smith
Modified: 2010-11-24 04:16 UTC (History)
3 users (show)

Fixed In Version: 0.37
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-09 04:21:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Jared Smith 2008-08-30 16:33:18 UTC
Description of problem:

If your run "create_book --help", it shows to add the --article option to create an article instead of a book.  When you go and try to use the --article option, you get informed that it's not a valid option.  Only by searching the source did I find that you instead have to use "--type=Article".  Also, I would think that the type shouldn't be case sensitive, as I'm sure people will mistakenly use "--type=article" (notice the lower case 'a').


Version-Release number of selected component (if applicable):
publican-0.34-0.fc9.noarch

How reproducible:
Every time

Steps to Reproduce:
1. create_book --help
2. create_book --article --name 'Bugzilla'
3.
  
Actual results:

[jsmith@localhost tmp]$ create_book --article --name 'Bugzilla'
Unknown option: article

Expected results:

I would expect the help text to match the actual code.

Additional info:

I haven't checked yet, but does the website documentation need to be updated as well?

Comment 1 Jeff Fearn 🐞 2008-09-09 04:21:51 UTC
Corrected help text and documentation.


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