simpler way of specifying no command
This commit is contained in:
parent
858302839c
commit
530dd8dc15
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue