summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-25 12:35:11 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-25 12:35:11 +0200
commit9761556033c1faaae37f995ba557c47f9f3c357f (patch)
tree5c6eae9e6a20e052d95cb4d112ee9098ea96ae2b /src/main.rs
parent8b21be5e14f44c4f9b0d995ed73709bdde30028f (diff)
Identify where the current code needs the dirs to exist
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 4333866..d7a633f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,7 +11,14 @@ struct Args {
command: Option<String>,
}
-fn main() -> Result<(), ShackleError> {
+fn main() {
+ if let Err(e) = main_inner() {
+ eprintln!("{}", e);
+ std::process::exit(1);
+ }
+}
+
+fn main_inner() -> Result<(), ShackleError> {
let args = Args::parse();
match args.command {
Some(user_input) => {