PhysarumSM / service-registry

Apache License 2.0
0 stars 0 forks source link

Make bootstrap optional when using -h with registry-cli, etc (and any other options that don't need connection to p2p network) #25

Open mwyzhao opened 3 years ago

mwyzhao commented 3 years ago

Extends to any other bin we run where there are options that don't need p2p connection

hivanco commented 3 years ago

To be clear, the only time registry-cli doesn't need p2p is when running add command with --no-add flag. Otherwise, registry-cli always uses p2p.

mwyzhao commented 3 years ago

So that makes the list

./registry-cli -h where it just outputs the help message (right now it errors out because no bootstrap and outputs help for the main command instead of the subcommand)

./registry-cli add --no-add where it does a dry run