Started adding error handling, fixed directories not being created if they do not exist, added config file
This commit is contained in:
18
src/args/mod.rs
Normal file
18
src/args/mod.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use clap::{Arg, Command, ArgAction, ArgMatches};
|
||||
|
||||
|
||||
pub fn parse_args() -> ArgMatches {
|
||||
|
||||
let matches = Command::new("dotfiles")
|
||||
.version("0.1")
|
||||
.author("Ethan Simmons")
|
||||
.about("Manages dotfiles")
|
||||
.arg(Arg::new("from-git")
|
||||
.short('f')
|
||||
.long("from-git")
|
||||
.action(ArgAction::SetTrue)
|
||||
)
|
||||
.get_matches();
|
||||
|
||||
matches
|
||||
}
|
||||
Reference in New Issue
Block a user