ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.8k stars 1.33k forks source link

weird way to parse arguments #3450

Closed cvasqxz closed 4 months ago

cvasqxz commented 5 months ago

Hi, to use the HTTP server with port 8080 on the testnet you need to use

./ord --chain=testnet server --http-port 8080
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4/2584962
Listening on http://0.0.0.0:8080

If you put the --http-port argument before server it doesn't work

./ord --chain=testnet --http-port 8080 server 
error: unexpected argument '--http-port' found

And if you want to check yout balance using port 8080 on the testnet you need to do this weird command

./ord --chain=testnet wallet --server-url http://localhost:8080 balance
raphjaph commented 5 months ago

flags are scoped to the subcommand they apply to

ord is many things. It's an indexer, and explorer and a wallet. Flags just become complex.

Some of the flags you can put into a settings file: https://docs.ordinals.com/guides/settings.html