2024-02-15 08:48:26 +01:00
|
|
|
use clap::{command, Parser};
|
2024-02-06 10:17:14 +01:00
|
|
|
use risp::law::Law;
|
2023-11-03 22:40:19 +01:00
|
|
|
|
2024-02-15 08:48:26 +01:00
|
|
|
#[derive(Parser, Debug)]
|
|
|
|
#[command(version, about, long_about = None)]
|
|
|
|
struct Args {
|
|
|
|
/// Path to the config of a law text
|
|
|
|
#[arg(short, long)]
|
|
|
|
config: String,
|
|
|
|
}
|
|
|
|
|
2023-11-03 13:45:25 +01:00
|
|
|
fn main() {
|
2023-11-05 12:46:04 +01:00
|
|
|
env_logger::init();
|
|
|
|
|
2024-02-15 08:48:26 +01:00
|
|
|
let args = Args::parse();
|
|
|
|
let law = Law::from_config(&args.config).unwrap();
|
2024-02-06 10:17:14 +01:00
|
|
|
|
2023-11-06 16:25:38 +01:00
|
|
|
law.to_md();
|
2023-11-03 13:45:25 +01:00
|
|
|
}
|