mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
15 lines
229 B
V
15 lines
229 B
V
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)
|
|
}
|