jerluc / driftd

Drift protocol daemon
MIT License
1 stars 0 forks source link

`riftd run` fails to display help if the default device file does not exist #7

Closed jerluc closed 7 years ago

jerluc commented 7 years ago

E.g.

$ riftd run --help
riftd: error: path '/dev/ttyUSB0' does not exist, try --help

This is likely related to the fact that the --device argument is required to exist currently.

jerluc commented 7 years ago

More interestingly, it looks like running:

$ riftd help run
usage: riftd run [<flags>]

Starts the Rift protocol daemon

Flags:
  --help                    Show context-sensitive help (also try --help-long and --help-man).
  --logging="INFO"          Log level
  --iface="rift0"           Network interface name
  --dev=/dev/ttyUSB0        Serial device name
  --cidr=2001:412:abcd:1::  IPv6 64-bit prefix

Works as expected...

jerluc commented 7 years ago

Fixed in https://github.com/jerluc/riftd/commit/4033e5ea752fc22b47985b4b079c4b266ac251ad