Add -k flag for debug purposes

This commit is contained in:
Lea Anthony
2021-01-03 05:02:48 +11:00
parent 44c55d06a6
commit f384fc7562
6 changed files with 25 additions and 14 deletions

View File

@@ -53,6 +53,10 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
logFile := ""
command.StringFlag("l", "Log to file", &logFile)
// Retain assets
keepAssets := false
command.BoolFlag("k", "Kep generated assets", &keepAssets)
command.Action(func() error {
// Create logger
@@ -87,6 +91,7 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
Platform: platform,
LDFlags: ldflags,
Compiler: compilerCommand,
KeepAssets: keepAssets,
}
return doBuild(buildOptions)