26 lines
611 B
Rust
26 lines
611 B
Rust
use clap::Parser;
|
|
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[command(
|
|
version,
|
|
about="Orbital mechanics simulator",
|
|
long_about = "Given initial conditions you provide to --config, \
|
|
this program will numerically integrate and determinate their \
|
|
paths based off Newton's law of gravity.")]
|
|
struct Args {
|
|
///Config file for initial conditions
|
|
#[arg(short, long)]
|
|
config: String,
|
|
|
|
///Step size for simulation (seconds)
|
|
#[arg(short, long, default_value_t = 10)]
|
|
step_size: u8,
|
|
}
|
|
|
|
fn main() {
|
|
let args = Args::parse();
|
|
|
|
println!("Loading initial parameters from {}", args.config);
|
|
}
|