Files
scryer-prolog/src/machine/args.rs
2025-11-19 19:23:41 +01:00

21 lines
328 B
Rust

use std::env;
#[derive(Debug)]
pub struct MachineArgs {
pub add_history: bool,
}
impl MachineArgs {
pub fn new() -> Self {
Self {
add_history: env::args().all(|arg| arg != "--no-add-history"),
}
}
}
impl Default for MachineArgs {
fn default() -> Self {
Self::new()
}
}