Skip to content

Commit 5c1e1d0

Browse files
committed
Add ignored flags for compatibility
When an old version autoupdates, it often sends -gc and -regex as commandline, while they should be parsed from the ini file. This way the autoupdate will still work. In a later release we'll remove them.
1 parent 31c8d73 commit 5c1e1d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.go

+4
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)