Skip to content

Commit

Permalink
Merge pull request #4990 from yt2b/yes_add_version_option
Browse files Browse the repository at this point in the history
yes: add --version option
  • Loading branch information
sylvestre authored Jun 20, 2023
2 parents 66723e0 + c3f2ac6 commit b09284c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uu/yes/src/yes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// cSpell:ignore strs

use clap::{builder::ValueParser, Arg, ArgAction, Command};
use clap::{builder::ValueParser, crate_version, Arg, ArgAction, Command};
use std::error::Error;
use std::ffi::OsString;
use std::io::{self, Write};
Expand Down Expand Up @@ -44,6 +44,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {

pub fn uu_app() -> Command {
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)
.override_usage(format_usage(USAGE))
.arg(
Expand Down

0 comments on commit b09284c

Please sign in to comment.