This commit is contained in:
Dr. Matthias Ratajczak
2022-12-02 17:08:17 +01:00
parent 8c383799d4
commit e1d3db670a
5 changed files with 16 additions and 14 deletions
+2 -6
View File
@@ -1,10 +1,6 @@
use clap::{Arg, Command};
pub const EDIT: &str = "edit";
pub const GROUPS: &str = "groups";
pub const SYNC: &str = "sync";
pub const UNMANAGED: &str = "unmanaged";
pub const VERSION: &str = "version";
use crate::action::*;
fn get_arg_parser() -> Command<'static> {
let result = Command::new("pacdef")
@@ -28,6 +24,6 @@ fn get_arg_parser() -> Command<'static> {
result
}
pub fn get_matched_arguments() -> clap::ArgMatches {
pub fn get_args() -> clap::ArgMatches {
get_arg_parser().get_matches()
}