Completely reworked copying and added more error handling
This commit is contained in:
@@ -1,18 +1 @@
|
||||
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
|
||||
}
|
||||
pub mod args;
|
||||
|
||||
Reference in New Issue
Block a user