1 unstable release

0.2.0 Dec 30, 2022
0.1.0 Dec 29, 2022

#4 in #acronym

MIT/Apache

12KB
262 lines

acro-rs

This was done to help me query a csv file with acronyms and their meanings. But I guess it can be used for any csv file that has two columns of which you want to use one to get the other.

Installation

With cargo

cargo install acro

With homebrew

brew tap nilventosa/acro
brew install acro

Usage

acro [OPTIONS] <acronym>

Arguments:

  • <acronym> the acronym to query

Options (short, long, env variable):

  • -f, --file, ACRO_FILE <file>
    the csv file with the acronyms and definitions
  • -a, --acro, ACRO_COLUMN <acro_column>
    the column with the acronyms [default: 1]
  • -d, --definition, DEFINITION_COLUMN <definition_column>
    the column with the definitions [default: 2]
  • -D, --delimiter, ACRO_DELIMITER <delimiter>
    delimiter character between columns [default: ',']
  • -H, --header, ACRO_HEADER
    flag if there is a header line
  • -c, --color, ACRO_COLOR
    disables color output
  • -h, --help
    Print help information
  • -V, --version
    Print version information

Dependencies

~2–12MB
~89K SLoC