Skip to content

Running without arguments throws an exception #90

@hamishmorgan

Description

@hamishmorgan

When running byblo.sh without arguments, the usage screen is displayed correctly, but then an ugly exception is thrown, which makes it look like something went wrong.

The method should be changes so that usage is displayed without an exception... Or at least it should print a message saying that the user needs to enter some arguments.

$ ./byblo.sh 
The following options are required: -i, --input 
Usage: FullBuild [options]
  Options:
    -c, --charset                      The character set encoding to use for
                                       both reading input and writing output files.
                                       Default: UTF-8
        --crmi-beta                    Beta parameter to CRMI measure.
                                       Default: 0.5
        --crmi-gamma                   Gamma parameter to CRMI measure.
                                       Default: 0.5
    -fef, --filter-entry-freq          Minimum entry frequency threshold.
                                       Default: 0.0
    -fep, --filter-entry-pattern       Regular expression that accepted entries
                                       must match.
    -few, --filter-entry-whitelist     Whitelist file containing entries of
                                       interest. (All others will be ignored)
    -fvf, --filter-event-freq          Minimum event frequency threshold.
                                       Default: 0.0
    -fff, --filter-feature-freq        Minimum feature frequency threshold.
                                       Default: 0.0
    -ffp, --filter-feature-pattern     Regular expression that accepted features
                                       must match.
    -ffw, --filter-feature-whitelist   Whitelist file containing features of
                                       interest. (All others will be ignored)
    -h, --help                         Display this help message.
                                       Default: false
    -ip, --identity-pairs              Produce similarity between pair of
                                       identical entries.
                                       Default: false
  * -i, --input                        Input instances file
        --lambda-lambda                lambda parameter to Lambda-Divergence
                                       measure.
                                       Default: 0.5
        --lee-alpha                    Alpha parameter to Lee alpha-skew
                                       divergence measure.
                                       Default: 0.99
    -m, --measure                      Similarity measure to use.
                                       Default: Lin
        --measure-reversed             Swap similarity measure inputs.
                                       Default: false
        --mink-p                       P parameter to Minkowski distance
                                       measure.
                                       Default: 2.0
    -o, --output                       Output directory. Default: current
                                       working directory.
    -Smx, --similarity-max             Maximum similarity threshold.
                                       Default: Infinity
    -Smn, --similarity-min             Minimum similarity threshold.
                                       Default: -Infinity
    -s, --stages                       Comma-separated list of stages to run.
                                       The standard behaviour is to run all required
                                       stages (as listed in the default value.)
                                       Default: [enumerate, count, filter, allpairs, knn, unenumerate]
    -T, --temp-dir                     Temorary directory, used during
                                       processing. Default: A subdirectory will be created
                                       inside the output directory.
    -t, --threads                      Number of concurrent processing threads.
                                       Default: 4
    -k                                 The maximum number of neighbours to
                                       produce per word.
                                       Default: 100

Exception in thread "main" java.lang.RuntimeException: Build process failed.
    at uk.ac.susx.mlcl.byblo.FullBuild.main(FullBuild.java:336)


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions