Configuration parameters should be descriptively named, well documented, and have sensible defaults that are visible to users. This makes your application more user-friendly and reduces confusion.
Configuration parameters should be descriptively named, well documented, and have sensible defaults that are visible to users. This makes your application more user-friendly and reduces confusion.
Descriptive naming:
query-file-limit
instead of file-limit
, or snapshotted-wal-files-to-keep
instead of num-wal-files-to-keep
Document defaults:
/// The maximum number of distinct value combinations to hold in the cache
#[clap(long = "max-cardinality", default_value = "100000")]
max_cardinality: Option<NonZeroUsize>,
Use user-friendly units:
Provide helpful documentation:
Following these guidelines will reduce support issues and improve the usability of your application’s configuration interface.
Enter the URL of a public GitHub repository