Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 663 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 663 Bytes

First-rust-program

Wrote my first program in rust using clap library which is used for argument parsing
This program can convert temperature from celsius to farenheit and vice versa through arguments from your terminal

cargo run -- -help

simple temperature converter
Usage: clap [OPTIONS]

Options:
  -F, --iffaren              
  -c, --celsius <CELSIUS>  
  -f, --farenhite <FARE>          
  -h, --help                 Print help
  -V, --version              Print version

by defaut the program will convert from celsius to farenhite , if u want to do vise versa then u must inclued the -F flag in the argument cargo run -- -F -f 12