fix prompt
This commit is contained in:
parent
06f9a82b01
commit
ecbc47d4fe
2 changed files with 7 additions and 3 deletions
|
|
@ -123,8 +123,12 @@ impl Args {
|
|||
fn validate_inputs(&self, args: &Seg) -> Result<(), String> {
|
||||
match self {
|
||||
Args::None => {
|
||||
if args.is_empty() {
|
||||
return Ok(())
|
||||
if args.len() == 1 {
|
||||
if let Ctr::None = *args.car {
|
||||
return Ok(())
|
||||
} else {
|
||||
return Err("expected no args".to_string())
|
||||
}
|
||||
} else {
|
||||
return Err("expected no args".to_string())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue