diff --git a/Cargo.lock b/Cargo.lock index fd54fb0..04cbb9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -539,7 +539,7 @@ checksum = "7aeeb265fe56d6e10e726905d6c1705c5642943bbebe82ebc2673e81086ea5ca" [[package]] name = "sgf-render" -version = "2.6.0" +version = "2.6.1" dependencies = [ "clap", "getopts", diff --git a/Cargo.toml b/Cargo.toml index 113e724..90d6088 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sgf-render" -version = "2.6.0" +version = "2.6.1" authors = ["Julian Andrews "] edition = "2018" license = "MIT" diff --git a/README.md b/README.md index e5489ad..e7ae133 100644 --- a/README.md +++ b/README.md @@ -46,20 +46,28 @@ $ ./target/release/sgf-render -h Usage: sgf-render [OPTIONS] [FILE] Arguments: - [FILE] SGF file to render (defaults to stdin) + [FILE] SGF file to render [default: read from stdin] Options: - -o, --outfile Output file. SVG and PNG formats supported - -n, --node Node to render. For simple use provide a number or `last` to render the last node. - See the README for more detail + -o, --outfile Output file [default: write to stdout] + -f, --format Output format [default: svg] [possible values: svg, + png] + -n, --node Node to render. For simple use provide a number or + `last` to render the last node. See the README for more + detail -w, --width Width of the output image in pixels [default: 800] - -s, --shrink-wrap Draw only enough of the board to hold all the stones (with 1 space padding) + -s, --shrink-wrap Draw only enough of the board to hold all the stones + (with 1 space padding) -r, --range Range to draw as a pair of corners (e.g. 'cc-ff') - --style