Skip to content

Commit

Permalink
Fix whelktool cli started without script
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy committed Nov 20, 2024
1 parent 6726944 commit 53980cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions whelktool/src/main/groovy/whelk/datatool/WhelkTool.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,11 @@ class WhelkTool {
int statsNumIds = options.n ? Integer.parseInt(options.n) : DEFAULT_STATS_NUM_IDS

Script script = null
if (!scriptPath) {
cli.usage()
System.exit(1)
}

try {
script = new FileScript(scriptPath)

Expand Down

0 comments on commit 53980cb

Please sign in to comment.