Skip to content

onChainCheck usage hint references an invalid Gradle flag #983

@MrLightspeed

Description

@MrLightspeed

Summary

When the onChainCheck task is run without -PfileToCheck, the CLI suggests ./gradlew -PfileToCheckh=/path/you/want/to/import, which is not a valid Gradle invocation.

Steps to reproduce

  1. Checkout master at e0794ee.
  2. Ensure Java 17 is available (export JAVA_HOME=$HOME/.jdks/jdk-17.0.13+11 && export PATH=$JAVA_HOME/bin:$PATH).
  3. Run ./gradlew onChainCheck without extra parameters.

Actual result

> Task :onChainCheck FAILED
Error: fileToCheck not specified :-)
Please execute like this: ./gradlew -PfileToCheckh=/path/you/want/to/import

The hint uses -PfileToCheckh and omits the task name, so copying it still fails.

Expected result

The usage message should show the proper command, e.g. ./gradlew onChainCheck -PfileToCheck=tokens/<chain>/<address>.json.

Environment

  • Commit: e0794ee
  • JDK: openjdk version "17.0.13" 2024-10-15 (Temurin-17.0.13+11)
  • OS: Ubuntu 22.04 (WSL)

Related PR

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