| Crates.io | riichi-hand-cli |
| lib.rs | riichi-hand-cli |
| version | 0.3.0 |
| created_at | 2025-01-27 12:33:14.219654+00 |
| updated_at | 2025-04-06 08:05:23.133865+00 |
| description | Cli wrapper of riichi-hand |
| homepage | |
| repository | https://github.com/SakaiTaka23/riichi-hand-cli |
| max_upload_size | |
| id | 1532364 |
| size | 66,645 |
Cli version of riichi-hand-rs
riichi-hand-cli is a command-line tool for generating mahjong hand images. It can either save the image to a file or copy it directly to your clipboard, making it convenient for game reviews or studying mahjong books without switching between browser windows.
cargo install riichi-hand-cli
Cli wrapper of riichi-hand
Usage: riichi-hand-cli [OPTIONS] <HAND>
Arguments:
<HAND> Mahjong hand in human-readable format --help for more information
Options:
-n, --name <NAME> Name and path of the image to save. If not specified, the image will be copied to clipboard
-t, --tile <TILE> Tile design to use [default: yellow]
-i, --interactive Interactive mode Can generate multiple images in the same session
-h, --help Print help (see more with '--help')
-V, --version Print version
# For more detailed information about HAND format
riichi-hand-cli --help
# interactive mode
riichi-hand-cli
# simple one hand
riichi-hand-cli --name hand.png --tile yellow 123456789s567p99m
# short hand command
riichi-hand-cli -n hand.png -t yellow 123456789s567p99m
# some complex example
riichi-hand-cli -n hand.png '123456s99m_5*67p_?99s?'
This project uses modified riichi-mahjong-tiles by FluffyStuff in public domain/CC0 1.0 Universal.
This project uses mahjong tiles by Martin Persson which are free for personal and commercial use under the condition that a link to the author's page is provided.