tr("List of paths to libraries root folders. Libraries set this way have top priority in case of conflicts. Can be used multiple times for different libraries."))
command.Flags().BoolVar(&compilationDatabaseOnly,"only-compilation-database",false,tr("Just produce the compilation database, without actually compiling. All build commands are skipped except pre* hooks."))
command.Flags().BoolVar(&clean,"clean",false,tr("Optional, cleanup the build folder and do not use any cached build."))
compileCommand.Flags().BoolVar(&optimizeForDebug,"optimize-for-debug",false,tr("Optional, optimize compile output for debugging, rather than for release."))
programmer.AddToCommand(compileCommand)
compileCommand.Flags().BoolVar(&compilationDatabaseOnly,"only-compilation-database",false,tr("Just produce the compilation database, without actually compiling. All build commands are skipped except pre* hooks."))
compileCommand.Flags().BoolVar(&clean,"clean",false,tr("Optional, cleanup the build folder and do not use any cached build."))
// We must use the following syntax for this flag since it's also bound to settings.
// This must be done because the value is set when the binding is accessed from viper. Accessing from cobra would only
// read the value if the flag is set explicitly by the user.
command.Flags().BoolP("export-binaries","e",false,tr("If set built binaries will be exported to the sketch folder."))
command.Flags().StringVar(&sourceOverrides,"source-override","",tr("Optional. Path to a .json file that contains a set of replacements of the sketch source code."))
command.Flag("source-override").Hidden=true
compileCommand.Flags().BoolP("export-binaries","e",false,tr("If set built binaries will be exported to the sketch folder."))
compileCommand.Flags().StringVar(&sourceOverrides,"source-override","",tr("Optional. Path to a .json file that contains a set of replacements of the sketch source code."))