Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
donpellegrino opened this issue Apr 25, 2024 · 0 comments

Comments

@donpellegrino
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant