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

Deploy Parse config files relative to the binary #246#247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rsora merged 4 commits intomasterfromdevel
Jul 27, 2018
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletionsmain.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -41,6 +41,10 @@ var (
genCert = flag.Bool("generateCert", false, "")
additionalConfig = flag.String("additional-config", "config.ini", "config file path")
isLaunchSelf = flag.Bool("ls", false, "launch self 5 seconds later")

// Ignored flags for compatibility
_ = flag.String("gc", "std", "Deprecated. Use the config.ini file")
_ = flag.String("regex", "usb|acm|com", "Deprecated. Use the config.ini file")
)

// iniflags
Expand DownExpand Up@@ -117,7 +121,7 @@ func main() {
}

// Parse ini config
args, err := parseIni("config.ini")
args, err := parseIni(filepath.Join(dest,"config.ini"))
if err != nil {
panic(err)
}
Expand All@@ -127,7 +131,7 @@ func main() {
}

// Parse additional ini config
args, err = parseIni(*additionalConfig)
args, err = parseIni(filepath.Join(dest,*additionalConfig))
if err != nil {
panic(err)
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp