stat.rs is my rust file
The command to pass to run stat on data.csv is:
./stat --min data.csv
which gives minimum value from all columns.
ap.refer(&mut average)
.add_option(&["--mean", "--average"], Store, "average");
I declared it like this and stored data.csv file itself as value for flag --min inorder to access that file because I dont know how to give flag which doesn't need a value.
So,could you please help me in this type of argument.