Add colored output to most tools; Make mkoverlay more tolerant for missing overlay files; Make psxcdgen_ex emit a warning when no license file is specified

This commit is contained in:
2023-04-22 15:44:21 +02:00
parent 7ef21179b3
commit 5a137ce644
11 changed files with 52 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "cpp_out"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -1,6 +1,7 @@
use clap::{Parser};
use std::path::PathBuf;
use cpp_out::{Configuration, Error, FileType};
use std::path::PathBuf;
use tool_helper::exit_with_error;
#[derive(Parser)]
#[clap(about = "Output a file content or stdin to a c++ header/source file", long_about = None)]
@@ -48,8 +49,7 @@ fn main() {
match run_main() {
Ok(_) => (),
Err(error) => {
eprintln!("{}", error);
std::process::exit(error.exit_code);
exit_with_error(error)
}
}
}