scsibug / nostr-rs-relay

Mirror of https://sr.ht/~gheartsfield/nostr-rs-relay/
MIT License
593 stars 161 forks source link

Which Values Can Be Passed on Startup? #206

Closed tsmith123 closed 2 months ago

tsmith123 commented 3 months ago

I see that you can pass --db in the startup cmd but what else can be passed as it would be nice to avoid creating a toml file if possible.

For example, can I pass --description and --name etc?

scsibug commented 2 months ago

Pretty much the only command line arguments are --db for the database, and --config for the configuration file. (plus --help & --version).

Running nostr-rs-relay --help will print out the full list.

In src/cli.rs you can see all the CLI args.