Reorder positional arguments in Backup and Remove

This commit is contained in:
LoveSy
2026-02-04 18:13:29 +08:00
committed by John Wu
parent b55f597ccf
commit be5246aef5

View File

@@ -74,19 +74,19 @@ struct Exists {
#[derive(FromArgs)]
#[argh(subcommand, name = "backup")]
struct Backup {
#[argh(positional, arg_name = "orig")]
origin: String,
#[argh(switch, short = 'n')]
skip_compress: bool,
#[argh(positional, arg_name = "orig")]
origin: String,
}
#[derive(FromArgs)]
#[argh(subcommand, name = "rm")]
struct Remove {
#[argh(positional, arg_name = "entry")]
path: String,
#[argh(switch, short = 'r')]
recursive: bool,
#[argh(positional, arg_name = "entry")]
path: String,
}
#[derive(FromArgs)]