petermr / openVirus

aggregation of scholarly publications and extracted knowledge on viruses and epidemics.
The Unlicense
67 stars 17 forks source link

AMIPDFTool fails to parse commandline / options #46

Open petermr opened 4 years ago

petermr commented 4 years ago
    @Test
    /** reads UCL corpus as PDFs and creates first pass SVG , images and scholarly html
     * 
     */
    public void testForestPlotsSmallSVG1() throws Exception {
        String projectDir = "/Users/pm286/workspace/uclforest/forestplotssmall";
        String args = 
                "-p " + projectDir
                + " pdf"
                + " --rawfiletypes pdf"
                + " --maxpages 20"
                + " --pdfimages false"
                + " --svgpages true"
                ;
        AMIPDFTool amiPdf = AMI.execute(AMIPDFTool.class, args);
    }

gives console output (in Eclipse)

Unknown option: '--rawfiletypes'
Usage: ami pdf [OPTIONS]
Try 'ami pdf --help' for more information.

AFAICS the logic is the same as for AMICleanTool and AMIDownloadTool and their tests.