lib/zold/commands/remote.rb in zold-0.16.27 vs lib/zold/commands/remote.rb in zold-0.16.28

- old
+ new

@@ -25,10 +25,11 @@ require 'rainbow' require 'net/http' require 'json' require 'time' require 'zold/score' +require_relative 'thread_badge' require_relative 'args' require_relative '../node/farm' require_relative '../log' require_relative '../age' require_relative '../json_page' @@ -42,11 +43,13 @@ # Copyright:: Copyright (c) 2018 Yegor Bugayenko # License:: MIT module Zold # Remote command class Remote - def initialize(remotes:, farm: Farm::Empty.new, log: Log::Quiet.new) + prepend ThreadBadge + + def initialize(remotes:, farm: Farm::Empty.new, log: Log::NULL) @remotes = remotes @farm = farm @log = log end @@ -101,12 +104,12 @@ default: false o.integer '--depth', 'The amount of update cycles to run, in order to fetch as many nodes as possible (default: 2)', default: 2 o.string '--network', - "The name of the network we work in (default: #{Wallet::MAIN_NETWORK}", + "The name of the network we work in (default: #{Wallet::MAINET}", required: true, - default: Wallet::MAIN_NETWORK + default: Wallet::MAINET o.bool '--reboot', 'Exit if any node reports version higher than we have', default: false # @todo #292:30min Group options by subcommands # Having all the options in one place _rather than grouping them by subcommands_