Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

main.rs 460 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  1. mod error;
  2. mod cleaning;
  3. mod tsv;
  4. mod db;
  5. mod logging;
  6. use structopt::StructOpt;
  7. use std::io;
  8. use std::fs::File;
  9. use std::path::PathBuf;
  10. use indicatif::{ProgressBar, ProgressStyle};
  11. use error::Result;
  12. use logging::LogOpts;
  13. /// BookData import tools
  14. #[derive(StructOpt, Debug)]
  15. #[structopt(name="bookdata")]
  16. struct Opt {
  17. #[structopt(flatten)]
  18. logging: LogOpts
  19. }
  20. fn main() -> Result<()> {
  21. let opt = Opt::from_args();
  22. opt.logging.init()?;
  23. Ok(())
  24. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...