work on api documentation

This commit is contained in:
2022-01-09 23:30:14 +01:00
parent f062e545f6
commit 3d79239a01
4 changed files with 255 additions and 103 deletions

View File

@@ -17,10 +17,16 @@ fn main() -> Result<()> {
let mut args = Arguments::from_env();
match args.subcommand()?.as_ref().map(|s| s.as_str()) {
Some("version") => {
println!("{}", env!("CARGO_PKG_VERSION"));
Ok(())
}
Some("run") => run(args),
Some("pack") => pack(args),
Some("filter-exports") => filter_exports(args),
Some("help") | None => {
println!("uw8 {}", env!("CARGO_PKG_VERSION"));
println!();
println!("Usage:");
println!(" uw8 run [-w/--watch] [-p/--pack] [-u/--uncompressed] [-l/--level] [-o/--output <out-file>] <file>");
println!(" uw8 pack [-u/--uncompressed] [-l/--level] <in-file> <out-file>");