You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tr(`Show build properties. The properties are returned exactly as they are defined. Use "--show-properties=expanded" to replace placeholders with context values.`),
60
+
)
61
+
command.Flags().Lookup("show-properties").NoOptDefVal="unexpanded"// default if the flag is present with no value
showPropertiesArgstring// Show all build preferences used instead of compiling.
71
-
preprocessbool// Print preprocessed code to stdout.
72
-
buildCachePathstring// Builds of 'core.a' are saved into this path to be cached and reused.
73
-
buildPathstring// Path where to save compiled files.
74
-
buildProperties []string// List of custom build properties separated by commas. Or can be used multiple times for multiple properties.
75
-
keysKeychainstring// The path of the dir where to search for the custom keys to sign and encrypt a binary. Used only by the platforms that supports it
76
-
signKeystring// The name of the custom signing key to use to sign a binary during the compile process. Used only by the platforms that supports it
77
-
encryptKeystring// The name of the custom encryption key to use to encrypt a binary during the compile process. Used only by the platforms that supports it
78
-
warningsstring// Used to tell gcc which warning level to use.
79
-
verbosebool// Turns on verbose mode.
80
-
quietbool// Suppresses almost every output.
81
-
uploadAfterCompilebool// Upload the binary after the compilation.
82
-
portArgs arguments.Port// Upload port, e.g.: COM10 or /dev/ttyACM0.
83
-
verifybool// Upload, verify uploaded binary after the upload.
84
-
exportDirstring// The compiled binary is written to this file
85
-
optimizeForDebugbool// Optimize compile output for debug, not for release
86
-
programmer arguments.Programmer// Use the specified programmer to upload
87
-
cleanbool// Cleanup the build folder and do not use any cached build
88
-
compilationDatabaseOnlybool// Only create compilation database without actually compiling
89
-
sourceOverridesstring// Path to a .json file that contains a set of replacements of the sketch source code.
90
-
dumpProfilebool// Create and print a profile configuration from the build
showPropertiesArgarguments.ShowProperties// Show all build preferences used instead of compiling.
51
+
preprocessbool// Print preprocessed code to stdout.
52
+
buildCachePathstring// Builds of 'core.a' are saved into this path to be cached and reused.
53
+
buildPathstring// Path where to save compiled files.
54
+
buildProperties []string// List of custom build properties separated by commas. Or can be used multiple times for multiple properties.
55
+
keysKeychainstring// The path of the dir where to search for the custom keys to sign and encrypt a binary. Used only by the platforms that supports it
56
+
signKeystring// The name of the custom signing key to use to sign a binary during the compile process. Used only by the platforms that supports it
57
+
encryptKeystring// The name of the custom encryption key to use to encrypt a binary during the compile process. Used only by the platforms that supports it
58
+
warningsstring// Used to tell gcc which warning level to use.
59
+
verbosebool// Turns on verbose mode.
60
+
quietbool// Suppresses almost every output.
61
+
uploadAfterCompilebool// Upload the binary after the compilation.
62
+
portArgs arguments.Port// Upload port, e.g.: COM10 or /dev/ttyACM0.
63
+
verifybool// Upload, verify uploaded binary after the upload.
64
+
exportDirstring// The compiled binary is written to this file
65
+
optimizeForDebugbool// Optimize compile output for debug, not for release
66
+
programmer arguments.Programmer// Use the specified programmer to upload
67
+
cleanbool// Cleanup the build folder and do not use any cached build
68
+
compilationDatabaseOnlybool// Only create compilation database without actually compiling
69
+
sourceOverridesstring// Path to a .json file that contains a set of replacements of the sketch source code.
70
+
dumpProfilebool// Create and print a profile configuration from the build
91
71
// library and libraries sound similar but they're actually different.
92
72
// library expects a path to the root folder of one single library.
93
73
// libraries expects a path to a directory containing multiple libraries, similarly to the <directories.user>/libraries path.
tr(`Show build properties instead of compiling. The properties are returned exactly as they are defined. Use "--show-properties=expanded" to replace placeholders with compilation context values.`),
120
-
)
121
-
compileCommand.Flags().Lookup("show-properties").NoOptDefVal="unexpanded"// default if the flag is present with no value
98
+
showPropertiesArg.AddToCommand(compileCommand)
122
99
compileCommand.Flags().BoolVar(&preprocess, "preprocess", false, tr("Print preprocessed code to stdout instead of compiling."))
123
100
compileCommand.Flags().StringVar(&buildCachePath, "build-cache-path", "", tr("Builds of 'core.a' are saved into this path to be cached and reused."))
124
101
compileCommand.Flags().StringVarP(&exportDir, "output-dir", "", "", tr("Save build artifacts in this directory."))
0 commit comments