generated from GarandPLG/rust-flake-template
Add comprehensive CLI options for game settings
- Expanded `Cli` with arguments for username, game mode, map size, perk deck, resources, supply limit, XP modifier, and skill points limit. - Enabled the `cli` module in `lib.rs` and activated argument parsing in `main.rs`. - Added placeholder (commented) fields to `App` for future configuration integration.
This commit is contained in:
+2
-2
@@ -6,11 +6,11 @@ use std::{
|
||||
};
|
||||
use war_in_tunnels::{
|
||||
app::{App, Event, handle_input_events},
|
||||
// cli::{Cli, get_args},
|
||||
cli::{Cli, get_args},
|
||||
};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
// let args: Cli = get_args();
|
||||
let args: Cli = get_args();
|
||||
let mut terminal: Terminal<CrosstermBackend<Stdout>> = ratatui::init();
|
||||
let mut app: App = App { exit: false };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user