-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more clap flags for easier testing
- Loading branch information
1 parent
64948a6
commit ae1aabb
Showing
4 changed files
with
82 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
use clap::{crate_version, Parser}; | ||
|
||
#[derive(Parser, Debug)] | ||
#[command(name = "Random Gores Map Generator")] | ||
#[command(version = crate_version!())] | ||
#[command(about = "Visual editor for generating maps and customizing the generators presets", long_about = None)] | ||
pub struct Args { | ||
/// select initial generation config | ||
pub gen_config: Option<String>, | ||
|
||
/// select initial map config | ||
pub map_config: Option<String>, | ||
|
||
/// trigger map generation on startup | ||
#[arg(short = 'g', long)] | ||
pub generate: bool, | ||
|
||
/// enable instant generation | ||
#[arg(short = 'i', long)] | ||
pub instant: bool, | ||
|
||
/// enable fixed seed | ||
#[arg(short = 'f', long)] | ||
pub fixed_seed: bool, | ||
|
||
/// enable auto generation | ||
#[arg(short = 'a', long)] | ||
pub auto_generation: bool, | ||
|
||
/// disable all debug visualization calculations for improved performance | ||
#[arg(short = 'd', long)] | ||
pub disable_debug: bool, | ||
|
||
/// comma seperated list of debug layers to enable on startup | ||
#[arg(short = 'e', long, value_delimiter = ',', num_args = 1..)] | ||
pub enable_layers: Option<Vec<String>>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod args; | ||
pub mod config; | ||
pub mod debug; | ||
pub mod editor; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters