MCPcopy Index your code
hub / github.com/TPAFS/transparency-data / parse_args

Function parse_args

validator/src/main.rs:524–535  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

522}
523
524fn parse_args(args: &[String]) -> Result<(&str, &str), Box<dyn Error>> {
525 if args.len() != 3 {
526 return Err(
527 "This utility script accepts exactly two arguments. A csv path, and a schema name.",
528 )?;
529 }
530
531 let file_path = &args[1];
532 let schema_name = &args[2];
533
534 Ok((file_path, schema_name))
535}
536
537fn validate_csv(cols: &[DataCol], file_path: &str) -> Result<(), Box<dyn Error>> {
538 // file handle and reader

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected