Skip to content

Commit f00c8b3

Browse files
committed
Merge branch 'main' of github.com:o2sh/onefetch
2 parents aecdeff + 8c6236e commit f00c8b3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ anyhow = "1.0"
3030
askalono = "0.4.4"
3131
byte-unit = "4.0.13"
3232
bytecount = "0.6.2"
33-
clap = {version = "3.0.14", features = ["cargo", "wrap_help"]}
33+
clap = {version = "3.1.1", features = ["cargo", "wrap_help"]}
3434
color_quant = "1.1.0"
3535
colored = "2.0.0"
3636
git2 = {version = "0.13.25", default-features = false}

src/cli.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::ui::image_backends;
55
use crate::ui::image_backends::ImageBackend;
66
use crate::ui::printer::SerializationFormat;
77
use anyhow::{Context, Result};
8-
use clap::{crate_description, crate_name, crate_version, App, AppSettings, Arg};
8+
use clap::{crate_description, crate_name, crate_version, AppSettings, Arg};
99
use image::DynamicImage;
1010
use regex::Regex;
1111
use std::process::Command;
@@ -48,11 +48,11 @@ impl Config {
4848
let color_values = &[
4949
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15",
5050
];
51-
let matches = App::new(crate_name!())
51+
let matches = clap::Command::new(crate_name!())
5252
.version(crate_version!())
5353
.about(crate_description!())
5454
.setting(AppSettings::DeriveDisplayOrder)
55-
.setting(AppSettings::HidePossibleValues)
55+
.hide_possible_values(true)
5656
.arg(
5757
Arg::new("input")
5858
.default_value(".")

0 commit comments

Comments
 (0)