mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: update/fix gen_vc
This commit is contained in:
parent
47ffedc5de
commit
438adfc2be
@ -80,16 +80,16 @@ const(
|
|||||||
|
|
||||||
struct GenVC {
|
struct GenVC {
|
||||||
// logger
|
// logger
|
||||||
logger &log.Log
|
|
||||||
// flag options
|
// flag options
|
||||||
options FlagOptions
|
options FlagOptions
|
||||||
mut:
|
mut:
|
||||||
|
logger &log.Log
|
||||||
// true if error was experienced running generate
|
// true if error was experienced running generate
|
||||||
gen_error bool
|
gen_error bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// webhook server
|
// webhook server
|
||||||
pub struct WebhookServer {
|
struct WebhookServer {
|
||||||
pub mut:
|
pub mut:
|
||||||
vweb vweb.Context
|
vweb vweb.Context
|
||||||
gen_vc &GenVC
|
gen_vc &GenVC
|
||||||
@ -118,7 +118,7 @@ fn main() {
|
|||||||
show_help:=fp.bool('help', 0, false, 'Show this help screen\n')
|
show_help:=fp.bool('help', 0, false, 'Show this help screen\n')
|
||||||
flag_options := parse_flags(mut fp)
|
flag_options := parse_flags(mut fp)
|
||||||
|
|
||||||
if( show_help ){ println( fp.usage() ) exit(0) }
|
if show_help { println( fp.usage() ) exit(0) }
|
||||||
|
|
||||||
fp.finalize() or {
|
fp.finalize() or {
|
||||||
eprintln(err)
|
eprintln(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user