Mahout
  1. Mahout
  2. MAHOUT-762

VectorDumper fails to parse --help option

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.6
    • Component/s: Clustering
    • Labels:
      None

      Description

      In VectorDumper.java, the Group Builder does not add help as a command line argument. This raises an exception when the user tries "bin/mahout vectordump --help."

      1. MAHOUT-762.patch
        0.7 kB
        Dhruv Kumar

        Activity

        Dhruv Kumar created issue -
        Dhruv Kumar made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Dhruv Kumar made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Dhruv Kumar made changes -
        Attachment MAHOUT-762.patch [ 12486458 ]
        Hide
        Dhruv Kumar added a comment -

        Simple fix, as suggested by Jake:

        VectorDumper.java
        
        //added .withOption(helpOpt)
        
        Group group = gbuilder.withName("Options").withOption(seqOpt).withOption(outputOpt)
                      .withOption(dictTypeOpt).withOption(dictOpt).withOption(csvOpt)
                      .withOption(vectorAsKeyOpt).withOption(printKeyOpt).withOption(sizeOpt)
                      .withOption(helpOpt).create();
        
        Show
        Dhruv Kumar added a comment - Simple fix, as suggested by Jake: VectorDumper.java //added .withOption(helpOpt) Group group = gbuilder.withName( "Options" ).withOption(seqOpt).withOption(outputOpt) .withOption(dictTypeOpt).withOption(dictOpt).withOption(csvOpt) .withOption(vectorAsKeyOpt).withOption(printKeyOpt).withOption(sizeOpt) .withOption(helpOpt).create();
        Sean Owen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.5 [ 12315255 ]
        Resolution Fixed [ 1 ]
        Hide
        Hudson added a comment -

        Integrated in Mahout-Quality #938 (See https://builds.apache.org/job/Mahout-Quality/938/)
        MAHOUT-762 add help option

        srowen : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1146779
        Files :

        • /mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java
        Show
        Hudson added a comment - Integrated in Mahout-Quality #938 (See https://builds.apache.org/job/Mahout-Quality/938/ ) MAHOUT-762 add help option srowen : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1146779 Files : /mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java
        Sean Owen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Dhruv Kumar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development