Start about texts with uppercase char

This commit is contained in:
Daniel Hofstetter 2023-02-07 14:54:25 +01:00
parent 4b3d57c93d
commit ba7a222a55
16 changed files with 16 additions and 16 deletions

View file

@ -20,7 +20,7 @@ use std::io::{stdin, Read};
use uucore::error::UClapError; use uucore::error::UClapError;
static ABOUT: &str = "\ static ABOUT: &str = "\
encode/decode data and print to standard output Encode/decode data and print to standard output
With no FILE, or when FILE is -, read standard input. With no FILE, or when FILE is -, read standard input.
When decoding, the input may contain newlines in addition to the bytes of When decoding, the input may contain newlines in addition to the bytes of

View file

@ -19,7 +19,7 @@ use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
use std::fs; use std::fs;
use std::os::unix::fs::MetadataExt; use std::os::unix::fs::MetadataExt;
static ABOUT: &str = "change file owner and group"; static ABOUT: &str = "Change file owner and group";
const USAGE: &str = "\ const USAGE: &str = "\
{} [OPTION]... [OWNER][:[GROUP]] FILE... {} [OPTION]... [OWNER][:[GROUP]] FILE...

View file

@ -17,7 +17,7 @@ use uucore::format_usage;
use clap::{crate_version, Arg, ArgAction, ArgMatches, Command}; use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
static ABOUT: &str = "compare two sorted files line by line"; static ABOUT: &str = "Compare two sorted files line by line";
static LONG_HELP: &str = ""; static LONG_HELP: &str = "";
const USAGE: &str = "{} [OPTION]... FILE1 FILE2"; const USAGE: &str = "{} [OPTION]... FILE1 FILE2";

View file

@ -22,7 +22,7 @@ mod split_name;
use crate::csplit_error::CsplitError; use crate::csplit_error::CsplitError;
use crate::split_name::SplitName; use crate::split_name::SplitName;
static ABOUT: &str = "split a file into sections determined by context lines"; static ABOUT: &str = "Split a file into sections determined by context lines";
static LONG_HELP: &str = "Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts of each piece to standard output."; static LONG_HELP: &str = "Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ..., and output byte counts of each piece to standard output.";
const USAGE: &str = "{} [OPTION]... FILE PATTERN..."; const USAGE: &str = "{} [OPTION]... FILE PATTERN...";

View file

@ -36,7 +36,7 @@ const MINUTE: &str = "minute";
const SECOND: &str = "second"; const SECOND: &str = "second";
const NS: &str = "ns"; const NS: &str = "ns";
const ABOUT: &str = "print or set the system date and time"; const ABOUT: &str = "Print or set the system date and time";
const USAGE: &str = "\ const USAGE: &str = "\
{} [OPTION]... [+FORMAT]... {} [OPTION]... [+FORMAT]...
{} [OPTION]... [MMDDhhmm[[CC]YY][.ss]]"; {} [OPTION]... [MMDDhhmm[[CC]YY][.ss]]";

View file

@ -11,7 +11,7 @@ use uucore::display::print_verbatim;
use uucore::error::{UResult, UUsageError}; use uucore::error::{UResult, UUsageError};
use uucore::format_usage; use uucore::format_usage;
static ABOUT: &str = "strip last component from file name"; static ABOUT: &str = "Strip last component from file name";
const USAGE: &str = "{} [OPTION] NAME..."; const USAGE: &str = "{} [OPTION] NAME...";
mod options { mod options {

View file

@ -73,7 +73,7 @@ mod options {
pub const FILE: &str = "FILE"; pub const FILE: &str = "FILE";
} }
const ABOUT: &str = "estimate file space usage"; const ABOUT: &str = "Estimate file space usage";
const LONG_HELP: &str = " const LONG_HELP: &str = "
Display values are in units of the first available SIZE from --block-size, Display values are in units of the first available SIZE from --block-size,
and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables.

View file

@ -13,7 +13,7 @@ use std::str::Chars;
use uucore::error::{FromIo, UResult}; use uucore::error::{FromIo, UResult};
use uucore::format_usage; use uucore::format_usage;
const ABOUT: &str = "display a line of text"; const ABOUT: &str = "Display a line of text";
const USAGE: &str = "{} [OPTIONS]... [STRING]..."; const USAGE: &str = "{} [OPTIONS]... [STRING]...";
const AFTER_HELP: &str = r#" const AFTER_HELP: &str = r#"
Echo the STRING(s) to standard output. Echo the STRING(s) to standard output.

View file

@ -99,7 +99,7 @@ fn long_usage() -> String {
) )
} }
static ABOUT: &str = "change file owner and group"; static ABOUT: &str = "Change file owner and group";
const USAGE: &str = "\ const USAGE: &str = "\
{} [OPTION]... [-T] TARGET LINK_NAME {} [OPTION]... [-T] TARGET LINK_NAME
{} [OPTION]... TARGET {} [OPTION]... TARGET

View file

@ -28,7 +28,7 @@ use std::os::unix::prelude::PermissionsExt;
use rand::Rng; use rand::Rng;
use tempfile::Builder; use tempfile::Builder;
static ABOUT: &str = "create a temporary file or directory."; static ABOUT: &str = "Create a temporary file or directory.";
const USAGE: &str = "{} [OPTION]... [TEMPLATE]"; const USAGE: &str = "{} [OPTION]... [TEMPLATE]";
static DEFAULT_TEMPLATE: &str = "tmp.XXXXXXXXXX"; static DEFAULT_TEMPLATE: &str = "tmp.XXXXXXXXXX";

View file

@ -18,7 +18,7 @@ use uucore::format_usage;
mod helper; mod helper;
static ABOUT: &str = "number lines of files"; static ABOUT: &str = "Number lines of files";
static USAGE: &str = "{} [OPTION]... [FILE]..."; static USAGE: &str = "{} [OPTION]... [FILE]...";
// Settings store options used by nl to produce its output. // Settings store options used by nl to produce its output.

View file

@ -50,7 +50,7 @@ use uucore::show_error;
use uucore::show_warning; use uucore::show_warning;
const PEEK_BUFFER_SIZE: usize = 4; // utf-8 can be 4 bytes const PEEK_BUFFER_SIZE: usize = 4; // utf-8 can be 4 bytes
static ABOUT: &str = "dump files in octal and other formats"; static ABOUT: &str = "Dump files in octal and other formats";
static USAGE: &str = "\ static USAGE: &str = "\
{} [OPTION]... [--] [FILENAME]... {} [OPTION]... [--] [FILENAME]...

View file

@ -22,7 +22,7 @@ use clap::{crate_version, Arg, ArgAction, Command};
use std::path::PathBuf; use std::path::PathBuf;
use uucore::format_usage; use uucore::format_usage;
static ABOUT: &str = "lightweight finger"; static ABOUT: &str = "Lightweight finger";
const USAGE: &str = "{} [OPTION]... [USER]..."; const USAGE: &str = "{} [OPTION]... [USER]...";
mod options { mod options {

View file

@ -23,7 +23,7 @@ use uucore::{
}; };
use uucore::{error::UClapError, show, show_if_err}; use uucore::{error::UClapError, show, show_if_err};
static ABOUT: &str = "print the resolved path"; static ABOUT: &str = "Print the resolved path";
const USAGE: &str = "{} [OPTION]... FILE..."; const USAGE: &str = "{} [OPTION]... FILE...";
static OPT_QUIET: &str = "quiet"; static OPT_QUIET: &str = "quiet";

View file

@ -19,7 +19,7 @@ use crate::operation::DeleteOperation;
use uucore::display::Quotable; use uucore::display::Quotable;
use uucore::error::{UResult, USimpleError, UUsageError}; use uucore::error::{UResult, USimpleError, UUsageError};
static ABOUT: &str = "translate or delete characters"; static ABOUT: &str = "Translate or delete characters";
const USAGE: &str = "{} [OPTION]... SET1 [SET2]"; const USAGE: &str = "{} [OPTION]... SET1 [SET2]";
mod options { mod options {

View file

@ -17,7 +17,7 @@ use uucore::format_usage;
#[cfg(any(target_os = "linux", target_os = "android"))] #[cfg(any(target_os = "linux", target_os = "android"))]
mod splice; mod splice;
const ABOUT: &str = "repeatedly display a line with STRING (or 'y')"; const ABOUT: &str = "Repeatedly display a line with STRING (or 'y')";
const USAGE: &str = "{} [STRING]..."; const USAGE: &str = "{} [STRING]...";
// it's possible that using a smaller or larger buffer might provide better performance on some // it's possible that using a smaller or larger buffer might provide better performance on some