diff --git a/zebrad/src/commands/seed.rs b/zebrad/src/commands/seed.rs index 493e4325..10de643d 100644 --- a/zebrad/src/commands/seed.rs +++ b/zebrad/src/commands/seed.rs @@ -83,25 +83,9 @@ impl Service for SeedService { /// /// A DNS seeder command to spider and collect as many valid peer /// addresses as we can. +// This is not a unit-like struct because it makes Command and Options sad. #[derive(Command, Debug, Default, Options)] -pub struct SeedCmd { - /// Filter strings - #[options(free)] - filters: Vec, -} - -impl config::Override for SeedCmd { - // Process the given command line options, overriding settings - // from a configuration file using explicit flags taken from - // command-line arguments. - fn override_config(&self, mut config: ZebradConfig) -> Result { - if !self.filters.is_empty() { - config.tracing.filter = self.filters.join(","); - } - - Ok(config) - } -} +pub struct SeedCmd {} impl Runnable for SeedCmd { /// Start the application.