5 releases
0.1.4 | Feb 12, 2024 |
---|---|
0.1.3 | Feb 12, 2024 |
0.1.2 | Feb 5, 2024 |
0.1.1 | Jan 10, 2024 |
0.1.0 | Jan 10, 2024 |
#1124 in Command line utilities
35 downloads per month
5KB
71 lines
gtinny - A GTIN Validator
Install
cargo install gtinny
Usage
A GTIN Validator
Usage: gtinny [OPTIONS] [gtin]
Arguments:
[gtin] Validates the GTIN
Options:
-v, --verbose Print if it is a valid GTIN
-q, --quiet Suppress all logging. Overrides verbose behaviour.
-h, --help Print help
-V, --version Print version
Examples
> gtinny 97350053850012 # is a valid GTIN
> echo $?
0
> gtinny 12398748906 # is an invalid GTIN
Invalid GTIN: 12398748906
> echo $?
1
Dependencies
~3–4MB
~69K SLoC