@@ -47,25 +47,35 @@ func InitCommand() *cobra.Command {
47
47
Args : cobra .MaximumNArgs (1 ),
48
48
Run : run ,
49
49
}
50
- command .Flags ().StringVarP (& flags .fqbn , "fqbn" , "b" , "" ,
50
+ command .Flags ().StringVarP (
51
+ & flags .fqbn , "fqbn" , "b" , "" ,
51
52
"Fully Qualified Board Name, e.g.: arduino:avr:uno" )
52
- command .Flags ().BoolVar (& flags .showProperties , "show-properties" , false ,
53
+ command .Flags ().BoolVar (
54
+ & flags .showProperties , "show-properties" , false ,
53
55
"Show all build properties used instead of compiling." )
54
- command .Flags ().BoolVar (& flags .preprocess , "preprocess" , false ,
56
+ command .Flags ().BoolVar (
57
+ & flags .preprocess , "preprocess" , false ,
55
58
"Print preprocessed code to stdout instead of compiling." )
56
- command .Flags ().StringVar (& flags .buildCachePath , "build-cache-path" , "" ,
59
+ command .Flags ().StringVar (
60
+ & flags .buildCachePath , "build-cache-path" , "" ,
57
61
"Builds of 'core.a' are saved into this path to be cached and reused." )
58
- command .Flags ().StringVar (& flags .buildPath , "build-path" , "" ,
62
+ command .Flags ().StringVar (
63
+ & flags .buildPath , "build-path" , "" ,
59
64
"Path where to save compiled files. If omitted, a directory will be created in the default temporary path of your OS." )
60
- command .Flags ().StringSliceVar (& flags .buildProperties , "build-properties" , []string {},
65
+ command .Flags ().StringSliceVar (
66
+ & flags .buildProperties , "build-properties" , []string {},
61
67
"List of custom build properties separated by commas. Or can be used multiple times for multiple properties." )
62
- command .Flags ().StringVar (& flags .warnings , "warnings" , "none" ,
68
+ command .Flags ().StringVar (
69
+ & flags .warnings , "warnings" , "none" ,
63
70
`Optional, can be "none", "default", "more" and "all". Defaults to "none". Used to tell gcc which warning level to use (-W flag).` )
64
- command .Flags ().BoolVarP (& flags .verbose , "verbose" , "v" , false ,
71
+ command .Flags ().BoolVarP (
72
+ & flags .verbose , "verbose" , "v" , false ,
65
73
"Optional, turns on verbose mode." )
66
- command .Flags ().BoolVar (& flags .quiet , "quiet" , false ,
74
+ command .Flags ().BoolVar (
75
+ & flags .quiet , "quiet" , false ,
67
76
"Optional, supresses almost every output." )
68
- command .Flags ().StringVar (& flags .vidPid , "vid-pid" , "" ,
77
+ command .Flags ().StringVar (
78
+ & flags .vidPid , "vid-pid" , "" ,
69
79
"When specified, VID/PID specific build properties are used, if boards supports them." )
70
80
return command
71
81
}
0 commit comments