tools: update/fix gen_vc

pull/5362/head
joe-conigliaro 2020-06-12 16:22:01 +10:00
parent 47ffedc5de
commit 438adfc2be
1 changed files with 6 additions and 6 deletions

View File

@ -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
@ -111,14 +111,14 @@ fn main() {
mut fp := flag.new_flag_parser(os.args.clone()) mut fp := flag.new_flag_parser(os.args.clone())
fp.application(app_name) fp.application(app_name)
fp.version(app_version) fp.version(app_version)
fp.description(app_description) fp.description(app_description)
fp.skip_executable() fp.skip_executable()
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)