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."))
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."))
tr("List of custom libraries dir paths separated by commas. Or can be used multiple times for multiple libraries dir paths."))
tr("List of custom libraries dir paths separated by commas. Or can be used multiple times for multiple libraries dir paths."))
command.Flags().BoolVar(&optimizeForDebug,"optimize-for-debug",false,tr("Optional, optimize compile output for debugging, rather than for release."))
compileCommand.Flags().BoolVar(&optimizeForDebug,"optimize-for-debug",false,tr("Optional, optimize compile output for debugging, rather than for release."))
command.Flags().StringVarP(&programmer,"programmer","P","",tr("Optional, use the specified programmer to upload."))
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."))
})
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."))
// We must use the following syntax for this flag since it's also bound to settings.
// 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
// 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.
// 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."))
compileCommand.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."))
compileCommand.Flags().StringVar(&sourceOverrides,"source-override","",tr("Optional. Path to a .json file that contains a set of replacements of the sketch source code."))