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:
@@ -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
|
||||
|
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user