2019-01-18 18:21:29 +00:00
|
|
|
# pymacro
|
|
|
|
|
|
|
|
A python implementation of the macros spec
|
|
|
|
|
|
|
|
## usage
|
|
|
|
```
|
2021-03-07 10:01:56 +00:00
|
|
|
$ ./pymacro -h
|
|
|
|
usage: pymacro [-h] [-m MACROS_FILE] [-i INPUT] [-o OUTPUT]
|
2019-01-18 18:21:29 +00:00
|
|
|
|
|
|
|
optional arguments:
|
|
|
|
-h, --help show this help message and exit
|
2021-03-07 10:01:56 +00:00
|
|
|
-m MACROS_FILE, --macros-file MACROS_FILE
|
|
|
|
File where macros are stored (default: macros)
|
|
|
|
-i INPUT, --input INPUT
|
|
|
|
File to be processed. (default: -)
|
|
|
|
-o OUTPUT, --output OUTPUT
|
|
|
|
Path of output (default: -)
|
2019-01-18 18:21:29 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## testing
|
|
|
|
|
|
|
|
Run `test.sh`.
|
|
|
|
A `diff` is run on the actual output against what should have come out according
|
|
|
|
to the spec.
|