cartesi / rollups

Cartesi Rollups
30 stars 12 forks source link

fix(offchain): http server config #158

Closed gligneul closed 1 year ago

gligneul commented 1 year ago

The argument name should be uppercase with underscore and the CLI argument should be lowercase with dashes.

How it looked:

      --healthcheck_enabled <healthcheck_enabled>
          [env: DISPATCHER_HEALTHCHECK_ENABLED=] [default: true] [possible values: true, false]
      --metrics_enabled <metrics_enabled>
          [env: DISPATCHER_METRICS_ENABLED=] [default: true] [possible values: true, false]
       --http-server-port <port>
          [env: DISPATCHER_HTTP_SERVER_PORT=] [default: 8080]

How other arguments look like:

      --tx-chain-id <TX_CHAIN_ID>
          Chain ID [env: TX_CHAIN_ID=]

How it looks now:

      --healthcheck-enabled <HEALTHCHECK_ENABLED>
          [env: DISPATCHER_HEALTHCHECK_ENABLED=] [default: true] [possible values: true, false]
      --metrics-enabled <METRICS_ENABLED>
          [env: DISPATCHER_METRICS_ENABLED=] [default: true] [possible values: true, false]
      --http-server-port <PORT>
          [env: DISPATCHER_HTTP_SERVER_PORT=] [default: 8080]