1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 13:37:48 +00:00

pr: add long names for -d and -h

This commit is contained in:
tilakpatidar 2018-12-12 22:45:48 +05:30 committed by Max Semenik
parent 420a066312
commit c58ee96abf

View file

@ -34,6 +34,7 @@ static CONTENT_LINES_PER_PAGE: usize = LINES_PER_PAGE - HEADER_LINES_PER_PAGE -
static NUMBERING_MODE_DEFAULT_SEPARATOR: &str = "\t"; static NUMBERING_MODE_DEFAULT_SEPARATOR: &str = "\t";
static NUMBERING_MODE_DEFAULT_WIDTH: usize = 5; static NUMBERING_MODE_DEFAULT_WIDTH: usize = 5;
static STRING_HEADER_OPTION: &str = "h"; static STRING_HEADER_OPTION: &str = "h";
static DOUBLE_SPACE_OPTION: &str = "d";
static NUMBERING_MODE_OPTION: &str = "n"; static NUMBERING_MODE_OPTION: &str = "n";
static FILE_STDIN: &str = "-"; static FILE_STDIN: &str = "-";
static READ_BUFFER_SIZE: usize = 1024 * 64; static READ_BUFFER_SIZE: usize = 1024 * 64;
@ -120,15 +121,15 @@ pub fn uumain(args: Vec<String>) -> i32 {
opts.optopt( opts.optopt(
STRING_HEADER_OPTION, STRING_HEADER_OPTION,
"", "header",
"Use the string header to replace the file name \ "Use the string header to replace the file name \
in the header line.", in the header line.",
"STRING", "STRING",
); );
opts.optflag( opts.optflag(
"d", DOUBLE_SPACE_OPTION,
"", "double-space",
"Produce output that is double spaced. An extra <newline> character is output following every <newline> "Produce output that is double spaced. An extra <newline> character is output following every <newline>
found in the input.", found in the input.",
); );