Closed 0pcom closed 4 months ago
It appears that we use flags inconsistently (in some cases incorrectly) for the apps, currently.
I'm not sure why we haven't noticed errors from this yet.
The way the code is currently on develop, the apps use the "flags" package, which accepts flags in the format -flag and not --flag
-flag
--flag
here it's in the single hyphen format https://github.com/skycoin/skywire/blob/develop/pkg/visor/visorconfig/config.go#L247
but in pkg/visor/api we use the double hyphen format in some places and single hyphen in other places https://github.com/skycoin/skywire/blob/develop/pkg/visor/api.go#L777 https://github.com/skycoin/skywire/blob/develop/pkg/visor/api.go#L797
fixed in #1704
It appears that we use flags inconsistently (in some cases incorrectly) for the apps, currently.
I'm not sure why we haven't noticed errors from this yet.
The way the code is currently on develop, the apps use the "flags" package, which accepts flags in the format
-flag
and not--flag
here it's in the single hyphen format https://github.com/skycoin/skywire/blob/develop/pkg/visor/visorconfig/config.go#L247
but in pkg/visor/api we use the double hyphen format in some places and single hyphen in other places https://github.com/skycoin/skywire/blob/develop/pkg/visor/api.go#L777 https://github.com/skycoin/skywire/blob/develop/pkg/visor/api.go#L797
1704 addresses this