summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Duarte <jmg.duarte@campus.fct.unl.pt>2020-10-30 14:28:44 +0000
committerJosé Duarte <jmg.duarte@campus.fct.unl.pt>2020-10-30 14:28:44 +0000
commitda339ab12b6932169a7867a9ead9939ca8ac91a8 (patch)
tree3649a870debc6c44608ce159047ffd5595755967
parent72ae9ca5981d078db821e0bbd2e281ab50f510d6 (diff)
Update README
-rw-r--r--README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index 927cdc2..e66df4a 100644
--- a/README.md
+++ b/README.md
@@ -95,7 +95,7 @@ If `<USERDIR>/.cargo/bin` is part of the `PATH` environment variable, `hx` shoul
### output arrays in `rust`, `c` or `golang`
-`hx` has a feature which can output the input file bytes as source code arrays.
+`hx` has a feature which can output the input file bytes as source code arrays.
For example:
@@ -126,6 +126,15 @@ a := [3]byte{
}
```
+#### python array: -ap
+
+```sh
+$ hx -ap -c8 tests/files/tiny.txt
+a = [
+ 0x69, 0x6c, 0x0a
+]
+```
+
## manual
```txt