Skip to content

CLI tools fail to handle -V or report incorrect version number for the 1.3.3 release. #280

@donpellegrino

Description

@donpellegrino

The command-line interface (CLI) tools built from the V.1.3.3 release report an incorrect version number. In addition, the tools do not all handle the "-V" flag consistently.

  • hdt2rdf
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./hdt2rdf -V
/home/user/test/hdt-cpp-1.3.3/libhdt/tools/.libs/hdt2rdf: option requires an argument -- 'V'
ERROR: Unknown option
$ hdt2rdf [options] <HDT input file> <RDF output file>
        -h                      This help
        -f      <format>        RDF Format of the output
        -V      Prints the HDT version number.
        -p      Prints a progress indicator.
        -v      Verbose output
  • hdtInfo
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./hdtInfo -V
v1.1.2
  • hdtSearch
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./hdtSearch -V
v1.1.2
  • modifyHeader
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./modifyHeader -V
/home/user/test/hdt-cpp-1.3.3/libhdt/tools/.libs/modifyHeader: invalid option -- 'V'
ERROR: Unknown option
$ modifyHeader [options] <input HDT> <outputHDT>
        -h                      This help
        -i      <s p o>         Insert new Triple to the Header [please escape IRIs \< \> and quotes \" \"]
        -r      <s p o>         Remove triple from the Header [please escape IRIs \< \> and quotes \" \"]
        -I      <insertFile>    Insert new Triples from insertFile (one per line) to the Header
        -R      <removeFile>    Remove Triples from removeFile (one per line) from the Header
  • replaceHeader
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./replaceHeader -V
ERROR: Specify the arguments:
replaceHeader <input HDT> <outputHDT> <newHeader>
  • searchHeader
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./searchHeader -V
/home/user/test/hdt-cpp-1.3.3/libhdt/tools/.libs/searchHeader: invalid option -- 'V'
ERROR: You must supply an input HDT and a query

$ searchHeader <input HDT> "s p o"
        -h                      This help
  • rdf2hdt
user@computer:~/test/hdt-cpp-1.3.3/libhdt/tools$ ./rdf2hdt -V
v1.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions