Skip to content
Snippets Groups Projects
Verified Commit f8f7c1a8 authored by nfontrod's avatar nfontrod
Browse files

src/delete.rs: Update the name of a group of arguments

parent 5268e66e
Branches
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ pub(crate) struct Delete { ...@@ -62,7 +62,7 @@ pub(crate) struct Delete {
long = "prefix", long = "prefix",
group = "pref", group = "pref",
value_name = "PREFIX", value_name = "PREFIX",
help_heading = "Common Options", help_heading = "Archive filters",
display_order = 1 display_order = 1
)] )]
pub(crate) prefix: Option<String>, pub(crate) prefix: Option<String>,
...@@ -73,18 +73,18 @@ pub(crate) struct Delete { ...@@ -73,18 +73,18 @@ pub(crate) struct Delete {
long = "glob-archives", long = "glob-archives",
group = "pref", group = "pref",
value_name = "GLOB", value_name = "GLOB",
help_heading = "Common Options", help_heading = "Archive filters",
display_order = 2 display_order = 2
)] )]
pub(crate) glob_archives: Option<String>, pub(crate) glob_archives: Option<String>,
/// Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp /// Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
#[clap(long = "sort-by", help_heading = "Common Options", display_order = 3)] #[clap(long = "sort-by", help_heading = "Archive filters", display_order = 3)]
pub(crate) sort_by: Option<String>, pub(crate) sort_by: Option<String>,
/// consider first N archives after other filters were applied /// consider first N archives after other filters were applied
#[clap( #[clap(
long, long,
value_name = "N", value_name = "N",
help_heading = "Common Options", help_heading = "Archive filters",
display_order = 4 display_order = 4
)] )]
pub(crate) first: Option<isize>, pub(crate) first: Option<isize>,
...@@ -92,7 +92,7 @@ pub(crate) struct Delete { ...@@ -92,7 +92,7 @@ pub(crate) struct Delete {
#[clap( #[clap(
long, long,
value_name = "N", value_name = "N",
help_heading = "Common Options", help_heading = "Archive filters",
display_order = 5 display_order = 5
)] )]
pub(crate) last: Option<isize>, pub(crate) last: Option<isize>,
...@@ -133,7 +133,7 @@ fn handle_boolean_options(sd: &Delete) -> Vec<String> { ...@@ -133,7 +133,7 @@ fn handle_boolean_options(sd: &Delete) -> Vec<String> {
/// # Arguments /// # Arguments
/// * margs A vector the arguments to pass to borg delete /// * margs A vector the arguments to pass to borg delete
/// * sd: A struct containing all arguments passed to gblk delete /// * sd: A struct containing all arguments passed to gblk delete
/// Return /// # Return
/// Nothing, but will update `margs` parameter /// Nothing, but will update `margs` parameter
fn handle_force_arguments(margs: &mut Vec<String>, sd: &Delete) { fn handle_force_arguments(margs: &mut Vec<String>, sd: &Delete) {
match sd.force { match sd.force {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment