A tool to read animebox backup files and export the data in alternate formats.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
839 B

5 years ago
  1. use clap::{App, Arg};
  2. const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");
  3. fn main() {
  4. let matches = App::new("AnimeBoxes Sync")
  5. .version(VERSION.unwrap_or("UNKNOWN"))
  6. .author("Drew Short <warrick@sothr.com>")
  7. .about("Parses AnimeBoxes backup files")
  8. .arg(
  9. Arg::with_name("config")
  10. .short("c")
  11. .value_name("FILE")
  12. .help("Set a custom config file")
  13. .takes_value(true),
  14. )
  15. .arg(
  16. Arg::with_name("INPUT")
  17. .help("The AnimeBoxes file to process")
  18. .required(true)
  19. .index(1),
  20. )
  21. .get_matches();
  22. let config = matches.value_of("config").unwrap_or("abs-default.conf");
  23. let file = matches.value_of("INPUT").unwrap();
  24. }