simpler way of specifying no command

This commit is contained in:
Abraham Toriz 2023-02-13 19:58:13 -06:00
parent 858302839c
commit 530dd8dc15
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ use std::process::exit;
use std::io;
use clap::{
Arg, SubCommand, AppSettings, ArgMatches, command, value_parser,
Arg, SubCommand, ArgMatches, command, value_parser,
};
use chrono::Utc;
use regex::Regex;
@ -128,7 +128,7 @@ fn main() {
// Now declar this app's cli
let matches = command!()
.setting(AppSettings::SubcommandRequired)
.subcommand_required(true)
.subcommand(SubCommand::with_name("archive")
.visible_alias("a")