more: comment out unimplemented arguments

This commit is contained in:
Terts Diepraam 2021-05-29 12:51:47 +02:00
parent 9d17c1fddf
commit 762da0bd37

View file

@ -50,6 +50,8 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
let matches = App::new(executable!()) let matches = App::new(executable!())
.about("A file perusal filter for CRT viewing.") .about("A file perusal filter for CRT viewing.")
.version(env!("CARGO_PKG_VERSION")) .version(env!("CARGO_PKG_VERSION"))
// The commented arguments below are unimplemented:
/*
.arg( .arg(
Arg::with_name(options::SILENT) Arg::with_name(options::SILENT)
.short("d") .short("d")
@ -125,6 +127,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
.takes_value(true) .takes_value(true)
.help("Display file beginning from pattern match"), .help("Display file beginning from pattern match"),
) )
*/
.arg( .arg(
Arg::with_name(options::FILES) Arg::with_name(options::FILES)
.required(false) .required(false)
@ -132,6 +135,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
.help("Path to the files to be read"), .help("Path to the files to be read"),
) )
.get_matches_from(args); .get_matches_from(args);
let mut buff = String::new(); let mut buff = String::new();
if let Some(filenames) = matches.values_of(options::FILES) { if let Some(filenames) = matches.values_of(options::FILES) {
let mut stdout = setup_term(); let mut stdout = setup_term();