Merge pull request #4282 from cakebaker/join_remove_name_constant

join: remove NAME constant
This commit is contained in:
Sylvestre Ledru
2023-01-17 17:32:22 +01:00
committed by GitHub
+1 -3
View File
@@ -24,8 +24,6 @@ use uucore::display::Quotable;
use uucore::error::{set_exit_code, UError, UResult, USimpleError};
use uucore::{crash, crash_if_err};
static NAME: &str = "join";
#[derive(Debug)]
enum JoinError {
IOError(std::io::Error),
@@ -699,7 +697,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
}
pub fn uu_app() -> Command {
Command::new(NAME)
Command::new(uucore::util_name())
.version(crate_version!())
.about(
"For each pair of input lines with identical join fields, write a line to