Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1650d05

Browse files
committed
Add ignored flags for compatibility
When an old version autoupdates, it often sends -gc and -regex ascommandline, while they should be parsed from the ini file.This way the autoupdate will still work. In a later release we'llremove them.
1 parent0d99e2f commit1650d05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ var (
4141
genCert=flag.Bool("generateCert",false,"")
4242
additionalConfig=flag.String("additional-config","config.ini","config file path")
4343
isLaunchSelf=flag.Bool("ls",false,"launch self 5 seconds later")
44+
45+
// Ignored flags for compatibility
46+
_=flag.String("gc","std","Deprecated. Use the config.ini file")
47+
_=flag.String("regex","usb|acm|com","Deprecated. Use the config.ini file")
4448
)
4549

4650
// iniflags

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp