mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Provide version information with -V
clap does most of this for you - I had forgotten to wire it up https://github.com/bootandy/dust/issues/33 increment build version
This commit is contained in:
@@ -15,6 +15,8 @@ static DEFAULT_NUMBER_OF_LINES: usize = 20;
|
||||
fn main() {
|
||||
let def_num_str = DEFAULT_NUMBER_OF_LINES.to_string();
|
||||
let options = App::new("Dust")
|
||||
.about("Like du but more intuitive")
|
||||
.version(crate_version!())
|
||||
.setting(AppSettings::TrailingVarArg)
|
||||
.arg(
|
||||
Arg::with_name("depth")
|
||||
|
||||
Reference in New Issue
Block a user