Skip to content

Commit

Permalink
release(cli): v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadiSave committed Apr 10, 2022
1 parent 8e4b78e commit b2df5ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cambridge-asm-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cambridge-asm-cli"
version = "0.12.0"
version = "0.13.0"
authors = ["SaadiSave <https://github.com/SaadiSave>"]
edition = "2021"
license = "MPL-2.0"
Expand Down
22 changes: 11 additions & 11 deletions cambridge-asm-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const INST_SET: InstSet = parse::get_fn_ext;

#[derive(Parser)]
#[clap(name = "Cambridge Pseudoassembly Interpreter")]
#[clap(version = "0.12")]
#[clap(version = "0.13")]
#[clap(author = "Saadi Save <github.com/SaadiSave>")]
#[clap(about = "Run pseudoassembly from Cambridge International syllabus 9618 (2021)")]
struct Cli {
Expand All @@ -34,44 +34,44 @@ struct Cli {
enum Commands {
/// Run compiled or plaintext pseudoassembly
Run {
#[clap(help = "Path to the input file containing compiled or plaintext pseudoassembly")]
/// Path to the input file containing compiled or plaintext pseudoassembly
path: OsString,

/// Increase logging level
#[clap(short = 'v', long = "verbose", parse(from_occurrences))]
#[clap(help = "Increase logging level")]
verbosity: usize,

/// Show execution time
#[clap(short = 't', long = "bench")]
#[clap(help = "Show execution time")]
bench: bool,

/// Format of input file
#[clap(arg_enum)]
#[clap(default_value_t = InFormats::Pasm)]
#[clap(short = 'f', long = "format")]
#[clap(help = "Format of input file")]
#[clap(default_value_t = InFormats::Pasm)]
format: InFormats,
},
/// Compile pseudoassembly
Compile {
#[clap(help = "Path to the input file containing pseudoassembly")]
/// Path to the input file containing pseudoassembly
input: OsString,

/// Path to output file
#[clap(short = 'o', long = "output")]
#[clap(help = "Path to output file")]
output: Option<OsString>,

/// Increase logging level
#[clap(short = 'v', long = "verbose", parse(from_occurrences))]
#[clap(help = "Increase logging level")]
verbosity: usize,

/// Format of output file
#[clap(arg_enum)]
#[clap(short = 'f', long = "format")]
#[clap(help = "Format of output file")]
#[clap(default_value_t = OutFormats::Json)]
format: OutFormats,

/// Minify output
#[clap(short = 'm', long = "minify")]
#[clap(help = "Minify output")]
minify: bool,
},
}
Expand Down

0 comments on commit b2df5ca

Please sign in to comment.