Skip to content

Fixed '--libraries' and '--library' flags description in compile command #1732

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions cli/compile/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ func NewCommand() *cobra.Command {
compileCommand.Flags().BoolVarP(&verify, "verify", "t", false, tr("Verify uploaded binary after the upload."))
compileCommand.Flags().StringVar(&vidPid, "vid-pid", "", tr("When specified, VID/PID specific build properties are used, if board supports them."))
compileCommand.Flags().StringSliceVar(&library, "library", []string{},
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("Path to a single library’s root folder. Can be used multiple times or entries can be comma separated."))
compileCommand.Flags().StringSliceVar(&libraries, "libraries", []string{},
tr("List of custom libraries dir paths separated by commas. Or can be used multiple times for multiple libraries dir paths."))
tr("Path to a collection of libraries. Can be used multiple times or entries can be comma separated."))
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."))
Expand Down
4 changes: 4 additions & 0 deletions rpc/cc/arduino/cli/commands/v1/commands_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/cc/arduino/cli/commands/v1/compile.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/cc/arduino/cli/commands/v1/compile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ message CompileRequest {
// If jobs is set to 0, it will use the number of available CPUs as the
// maximum.
int32 jobs = 14;
// List of custom libraries dir paths.
// A list of paths to directories containing a collection of libraries.
repeated string libraries = 15;
// Optimize compile output for debug, not for release.
bool optimize_for_debug = 16;
Expand All @@ -78,7 +78,7 @@ message CompileRequest {
// When set to `true` the compiled binary will be copied to the export
// directory.
google.protobuf.BoolValue export_binaries = 23;
// List of paths to library root folders
// A list of paths to single libraries root directory.
repeated string library = 24;
// The path where to search for the custom signing key name and the encrypt
// key name
Expand Down
4 changes: 4 additions & 0 deletions rpc/cc/arduino/cli/debug/v1/debug_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions rpc/cc/arduino/cli/monitor/v1/monitor_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions rpc/cc/arduino/cli/settings/v1/settings_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.