Skip to content

Commit 5a6a394

Browse files
authored
Update README.md
1 parent 135878d commit 5a6a394

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ Where `<NUMBER>` can be:
1919
- A decimal number (e.g., `42`, `-123`)
2020
- A hexadecimal number (e.g., `0x2A`, `0xffff`)
2121

22+
Type `nmx -h` to see how to use nmx:
23+
24+
```
25+
❯ nmx -h
26+
Usage: nmx [OPTIONS] <NUMBER>
27+
28+
Arguments:
29+
<NUMBER>
30+
31+
Options:
32+
-m, --monochrome Display result without colors
33+
-h, --help Print help
34+
-V, --version Print version
35+
```
36+
2237
## Comparison with Alternatives
2338

2439
While similar tools exist, NumEx focuses on simplicity and intuitive syntax:
@@ -58,13 +73,13 @@ cargo install --path .
5873

5974
### Examples
6075

61-
Converting decimal number 42:
76+
Converting hexadecimal number 0xcafe:
6277

6378
```bash
64-
$ nmx 42
65-
Dec: 42
66-
Hex: 0x2a
67-
Bin: 0b101010
79+
nmx 0xcafe
80+
Dec: 51966
81+
Hex: 0xcafe
82+
Bin: 0b1100101011111110
6883
```
6984

7085
## Error Handling

0 commit comments

Comments
 (0)