Prepare for simple TIM conversion

This commit is contained in:
Jaby
2022-09-17 17:12:53 +02:00
committed by Jaby
parent d380ebf655
commit c420b850a3
5 changed files with 48 additions and 10 deletions

View File

@@ -1,3 +1,28 @@
use jaby_engine_fconv::images::{*};
use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[clap(about = "Converts files to various JabyEngine related file formats", long_about = None)]
struct CommandLine {
#[clap(short='o')]
output_file: Option<PathBuf>,
#[clap(value_parser)]
input_file: Option<PathBuf>,
#[clap(subcommand)]
sub_command: SubCommands,
}
#[derive(Subcommand)]
enum SubCommands {
SimpleTIM(reduced_tim::Arguments)
}
fn main() {
println!("Blubb!");
match CommandLine::try_parse() {
Ok(_cmd) => println!("Planschbecken"),
Err(error) => println!("{}", error.to_string())
}
}