v2 / cmd / tools / vwhere / vwhere.v
15 lines · 13 sloc · 305 bytes · 903a585e9e6e303e521bf935dcc8af4610582a52
Raw
1module main
2
3import os
4
5fn main() {
6 args := os.args[2..]
7 if args.len == 0 || args == ['help'] || '-help' in args || '--help' in args {
8 os.system('${os.quoted_path(vexe)} help where')
9 exit(0)
10 }
11 mut fdr := Finder{}
12 fdr.configure_from_arguments(args)
13 fdr.search_for_matches()
14 fdr.show_results()
15}
16