diff --git a/src/main.rs b/src/main.rs index 109e19d..330b444 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ fn help() { - println!("Help: tangled-on-commit + println!( + "Help: tangled-on-commit Listen for commits on a specified repository and execute a shell command. CLI Arguments: @@ -32,7 +33,8 @@ Env: Loads the environment variables `TANGLED_ON_COMMIT_HANDLE` and `TANGLED_ON_COMMIT_REPO_NAME` Shell cannot be set by environment variables. Env variables are used if relevant keys are ommitted an arguments aren't passed to the CLI. -") +" + ) } #[derive(Debug)] @@ -198,9 +200,15 @@ fn load_config() -> Result { // couldnt resolve every value // print an error and quit println!("Unable to find a value for every setting. Missing values for:"); - if handle.is_none() {println!("- handle");} - if repo_name.is_none() {println!("- repo_name");} - if shell.is_none() {println!("- shell");} + if handle.is_none() { + println!("- handle"); + } + if repo_name.is_none() { + println!("- repo_name"); + } + if shell.is_none() { + println!("- shell"); + } println!("\nRun `tangled-on-commit --help` to see the help message"); return Err(()); }