1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00
This commit is contained in:
Sylvestre Ledru 2022-08-18 10:52:25 +02:00
parent 85e6f8659f
commit 6f6784f113

View file

@ -17,7 +17,7 @@ use std::io::{self, stdout};
use std::ops::ControlFlow; use std::ops::ControlFlow;
use std::os::unix::io::{AsRawFd, RawFd}; use std::os::unix::io::{AsRawFd, RawFd};
use uucore::error::{UResult, USimpleError}; use uucore::error::{UResult, USimpleError};
use uucore::{format_usage, InvalidEncodingHandling}; use uucore::format_usage;
#[cfg(not(any( #[cfg(not(any(
target_os = "freebsd", target_os = "freebsd",
@ -138,8 +138,7 @@ ioctl_write_ptr_bad!(
#[uucore::main] #[uucore::main]
pub fn uumain(args: impl uucore::Args) -> UResult<()> { pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let args = args let args = args
.collect_str(InvalidEncodingHandling::ConvertLossy) .collect_lossy();
.accept_any();
let matches = uu_app().get_matches_from(args); let matches = uu_app().get_matches_from(args);