Skip to content

Commit 92633e8

Browse files
committed
修复Windows 终端设计
1 parent 020326d commit 92633e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common/help.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn dump_help_compile() ! {
161161
arr << ''
162162
arr << term.yellow('指令:')
163163
arr << ''
164-
arr << term.green(' -noterm ') + '不显示终端窗口'
164+
arr << term.green(' -noterm [true/false] ') + '不显示终端窗口,默认false'
165165
arr << term.green(' -o [name] ') + '编译为指定文件名'
166166
arr << term.green(' -icon [file] ') + '编译为指定图标'
167167
arr << ''

compile/windows.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn php_body() ![]string {
230230
fn noterm() string {
231231
mut args := common.get_args()
232232
noterm := cmdline.option(args, '-noterm', 'false')
233-
if noterm != 'flase' {
233+
if noterm == 'false' {
234234
return common.path_add(common.Dirs{}.script, 'cli.exe')
235235
} else {
236236
return common.path_add(common.Dirs{}.script, 'win32.exe')

0 commit comments

Comments
 (0)