Unify defaults across CLI and impl Default
jonhoo opened this issue · comments
Jon Gjengset commented
#52 introduces a lot of default values, and they are duplicated between the impl Default for Options
and the CLI StructOpt
definitions. We should find a way to declare these as global constants, and then use those in both places. There's been a bunch of discussion of that in #52 (comment), which should provide a good starting point.
Jon Gjengset commented
As part of this, we should probably introduce a mod flamegraph::defaults
that contains them so we don't end up littering the API docs with constants.