aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/flag/testdata/simplest_flag_program.v
blob: cee2ff7d3a1a172da85ddcf34860085891fbf0aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import flag

fn main() {
	mut fp := flag.new_flag_parser(os.args)
	fp.application('abc')
	fp.version('0.0.1')
	fp.skip_executable()
	rest_of_args := fp.finalize() or {
		eprintln(err)
		exit(1)
	}
	dump(rest_of_args)
}