Collectors should have a way to register cmdline arguments and to retrieve their value when the program starts.
A possible solution would be to use clap with Option<Vec<clap::Arg>> when registering a collector and Option<clap::ArgMatches> as one of its init() arguments.
Collectors should have a way to register cmdline arguments and to retrieve their value when the program starts.
A possible solution would be to use
clap
withOption<Vec<clap::Arg>>
when registering a collector andOption<clap::ArgMatches>
as one of itsinit()
arguments.