Require at least 2 args for cat command

This commit is contained in:
Marcin Kulik
2025-05-06 18:59:54 +02:00
parent 986a64d3cc
commit 8522328627

View File

@@ -222,7 +222,7 @@ pub struct Session {
#[derive(Debug, Args)]
pub struct Cat {
#[arg(required = true)]
#[arg(required = true, num_args = 2..)]
pub filename: Vec<String>,
}