Bug 533081 - publican --version does not work.
Summary: publican --version does not work.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 541450 564401 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-04 22:17 UTC by eric
Modified: 2010-11-24 04:18 UTC (History)
7 users (show)

Fixed In Version: 1.3-0.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-10 04:14:33 UTC


Attachments (Terms of Use)

Description eric 2009-11-04 22:17:57 UTC
Description of problem: When doing a "publican --version" I receive the following:

[christensene@desk pdf]$ publican --version
Unknown option: version


Usage:
    publican <global options>

    publican <action> <options>

    Global Options

        --help      Display help message
        --man               Display Full man page
        --help_actions      Display a list of valid actions
        --version   Display the version of Publican

    Run: 'publican <action> --help' for details on action usage

    Valid actions are:

        build         Transform XML to other formats (pdf, html, html-single)
        clean         Remove all temporary files and directories
        clean_ids     Run clean ids for source XML
        cleanset      Remove local copies remote set books
        create        Create a new Book|Set|Article|brand
        create_brand  Create a new Brand
        help_config   Display help text for the configuration file
        installbrand  Install a brand to the supplied location
        old2new       Create a publican.cfg file for an old Book|Article|Set Makefile
        package       Package a language for shipping
        printtree     Print a tree of the xi:includes
        update_po     Update the PO files
        update_pot    Update the POT files



Version-Release number of selected component (if applicable): 1.1-0.fc12

Comment 1 Jeff Fearn 🐞 2009-11-05 05:31:30 UTC
I've checked a fix for this in to the repo.

A work around for this is to use -v which does work.

$ publican -v
version=1.2

The next version will support both --version and -v.

Comment 2 eric 2009-11-05 14:13:56 UTC
Heck, I didn't even think about trying that.  Thanks.

Comment 3 Jeff Fearn 🐞 2009-11-11 01:04:59 UTC
I had to change the behavior because

publican --version

clashes with

publican create --version 3.0 ...

So in publican 1.3 only 'publican -v' will get the version of publican and '--version' will only be used when creating books.

Sorry for any inconvenience.

Cheers, Jeff.

Comment 4 eric 2009-11-11 01:33:13 UTC
Cool.  I think it was listed in the publican --help menu.

Comment 5 Jeff Fearn 🐞 2009-11-11 04:10:44 UTC
I fixed the help text:

]$ publican --help


Usage:
    publican <global options>

    publican <action> <options>

    Global Options

        --help              Display help message
        --man               Display Full man page
        --help_actions      Display a list of valid actions
        -v                  Display the version of Publican
...

Comment 6 eric 2009-11-11 13:19:49 UTC
Works for me.

Comment 7 Bug Zapper 2009-11-16 15:06:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Jeff Fearn 🐞 2009-11-25 23:03:19 UTC
*** Bug 541450 has been marked as a duplicate of this bug. ***

Comment 9 Jared MORGAN 2009-11-25 23:15:42 UTC
Sorry for the duplicate Jeff.

I just downloaded 1.2 this morning.  And I successfully used publican -v.

But the publican --help command still displays the --version usage info.  Is the new -v parameter help info scheduled for the 1.3 release, or was it meant to make it into 1.2?

[jmorgan@jmorgan ~]$ publican -v
version=1.2
[jmorgan@jmorgan ~]$ publican -help


Usage:
    publican <global options>

    publican <action> <options>

    Global Options

        --help      Display help message
        --man               Display Full man page
        --help_actions      Display a list of valid actions
        --version   Display the version of Publican

    Run: 'publican <action> --help' for details on action usage

    Valid actions are:

        build         Transform XML to other formats (pdf, html, html-single)
        clean         Remove all temporary files and directories
        clean_ids     Run clean ids for source XML
        cleanset      Remove local copies remote set books
        create        Create a new Book|Set|Article|brand
        create_brand  Create a new Brand
        help_config   Display help text for the configuration file
        installbrand  Install a brand to the supplied location
        old2new       Create a publican.cfg file for an old Book|Article|Set Makefile
        package       Package a language for shipping
        printtree     Print a tree of the xi:includes
        update_po     Update the PO files
        update_pot    Update the POT files

[jmorgan@jmorgan ~]$

Comment 10 Jeff Fearn 🐞 2009-11-25 23:30:51 UTC
(In reply to comment #3)
> So in publican 1.3 only 'publican -v' will get the version of publican and
> '--version' will only be used when creating books.

Making this clearer.

Comment 11 Fedora Update System 2009-12-08 02:14:29 UTC
publican-1.3-0.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/publican-1.3-0.fc12

Comment 12 Fedora Update System 2009-12-08 02:17:52 UTC
publican-1.3-0.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/publican-1.3-0.fc11

Comment 13 Fedora Update System 2009-12-10 04:13:29 UTC
publican-1.3-0.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2009-12-10 04:26:20 UTC
publican-1.3-0.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Jeff Fearn 🐞 2010-02-15 00:25:44 UTC
*** Bug 564401 has been marked as a duplicate of this bug. ***


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