Skip to content

Commit

Permalink
cmd: don't print a table if we want Mist JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
iameli committed Oct 17, 2022
1 parent 12358f5 commit 31be623
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions cmd/livepeer/livepeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ func main() {
}

vFlag.Value.Set(*verbosity)

if *mistJson {
mistconnector.PrintMistConfigJson(
"livepeer",
"Official implementation of the Livepeer video processing protocol. Can play all roles in the network.",
"Livepeer",
core.LivepeerVersion,
flag.CommandLine,
)
return
}

cfg = updateNilsForUnsetFlags(cfg)

// compare current settings with default values, and print the difference
Expand All @@ -68,17 +80,6 @@ func main() {
paramTable.SetColumnSeparator("|")
paramTable.Render()

if *mistJson {
mistconnector.PrintMistConfigJson(
"livepeer",
"Official implementation of the Livepeer video processing protocol. Can play all roles in the network.",
"Livepeer",
core.LivepeerVersion,
flag.CommandLine,
)
return
}

if *version {
fmt.Println("Livepeer Node Version: " + core.LivepeerVersion)
fmt.Printf("Golang runtime version: %s %s\n", runtime.Compiler, runtime.Version())
Expand Down

0 comments on commit 31be623

Please sign in to comment.