print periodic table when no args are supplied
Some checks failed
CI / Rust project (push) Failing after -3m19s
Some checks failed
CI / Rust project (push) Failing after -3m19s
This commit is contained in:
parent
214e579501
commit
29cc3b66ce
@ -7,7 +7,7 @@ mod variations;
|
||||
use std::env;
|
||||
use parse::parse;
|
||||
|
||||
use periodic_table::Element;
|
||||
use periodic_table::{Element, periodic_table};
|
||||
|
||||
use crate::variations::calculate::get_variations;
|
||||
|
||||
@ -25,6 +25,11 @@ fn main() {
|
||||
args.push(argument);
|
||||
}
|
||||
|
||||
if args.len() < 2 {
|
||||
println!("{:#?}", periodic_table());
|
||||
return
|
||||
}
|
||||
|
||||
let elements = parse(&args[1]);
|
||||
println!("{:#?}", elements);
|
||||
println!("{}", elements.len());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user