Skip to content

Commit

Permalink
prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
hlorenzi committed Aug 17, 2016
1 parent df686a1 commit 354daba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ and assembles files based on that.
This can be useful if you'd like to test out a new virtual machine's bytecode,
or even if you're eager to write programs for the new processor architecture
you just implemented in FPGA!
Check out the wiki for usage instructions.
Check out the Releases section for pre-built binaries.
Check out the Wiki for usage instructions.

```
Usage:
customasm [options] <def_file> <asm_file> [<out_file>]
customasm -v | --version
customasm -h | --help
customasm -v | -h
Options:
-h, --help Display this information.
-v, --version Display version information.
-q, --quiet Do not print progress to stdout.
-f <format>, --format=<format> The format of the output file. Can be one of:
binary, binstr, hexstr, bindump, hexdump.
[default: hexdump]
-v, --version Display version information.
-h, --help Display help.
```

The idea is that, given this definition file:
Expand Down
9 changes: 4 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ use std::process::exit;
const USAGE: &'static str = "
Usage:
customasm [options] <def_file> <asm_file> [<out_file>]
customasm -v | --version
customasm -h | --help
customasm -v | -h
Options:
-h, --help Display this information.
-v, --version Display version information.
-q, --quiet Do not print progress to stdout.
-f <format>, --format=<format> The format of the output file. Can be one of:
binary, binstr, hexstr, bindump, hexdump.
[default: hexdump]
-v, --version Display version information.
-h, --help Display help.
";


Expand All @@ -37,7 +36,7 @@ fn main()
{
let args = docopt::Docopt::new(USAGE)
.map(|d| d.help(true))
.map(|d| d.version(Some(format!("customasm v{}", env!("CARGO_PKG_VERSION")))))
.map(|d| d.version(Some(format!("{} v{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")))))
.and_then(|d| d.parse())
.unwrap_or_else(|e| e.exit());

Expand Down

0 comments on commit 354daba

Please sign in to comment.