mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
backup_control: Add backup help string from GNU utils
The previous help string for the backup subroutines didn't comply with the formatting found in the `--help` output of e.g. `mv` or `ln`. Use the exact help string from these utilities instead.
This commit is contained in:
parent
41d289377b
commit
3b8f135842
1 changed files with 8 additions and 12 deletions
|
@ -7,19 +7,15 @@ pub static BACKUP_CONTROL_VALUES: &[&str] = &[
|
|||
"simple", "never", "numbered", "t", "existing", "nil", "none", "off",
|
||||
];
|
||||
|
||||
pub static BACKUP_CONTROL_LONG_HELP: &str = "The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX. Here are the version control values:
|
||||
pub static BACKUP_CONTROL_LONG_HELP: &str =
|
||||
"The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.
|
||||
The version control method may be selected via the --backup option or through
|
||||
the VERSION_CONTROL environment variable. Here are the values:
|
||||
|
||||
none, off
|
||||
never make backups (even if --backup is given)
|
||||
|
||||
numbered, t
|
||||
make numbered backups
|
||||
|
||||
existing, nil
|
||||
numbered if numbered backups exist, simple otherwise
|
||||
|
||||
simple, never
|
||||
always make simple backups";
|
||||
none, off never make backups (even if --backup is given)
|
||||
numbered, t make numbered backups
|
||||
existing, nil numbered if numbered backups exist, simple otherwise
|
||||
simple, never always make simple backups";
|
||||
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
|
||||
pub enum BackupMode {
|
||||
|
|
Loading…
Reference in a new issue