A CLI tool to make Fahrenheit <--> Celsius convertions.
$ cargo install fahrcel
- Rust > 2018 vr.
To call fahRcel, type in your terminal:
$ fahrcel
The positional arguments required are:
-
[output_type] option to convert numeric value:
- f = 'to fahrenheit'
- c = 'to celsius'
-
[number] numeric value to convert
The final structure to use fahRcel is:
$ fahrcel [output_type] [number]
To get help, type:
$ fahrcel --help
$ fahrcel c 5
Result: 5fh = -15.000001c
$ fahrcel c 5.6
Result: 5.6fh = -14.666667c
$ fahrcel c 5
Result: 5fh = -15.000001c