@@ -47,25 +47,35 @@ func InitCommand() *cobra.Command {
4747 Args : cobra .MaximumNArgs (1 ),
4848 Run : run ,
4949 }
50- command .Flags ().StringVarP (& flags .fqbn , "fqbn" , "b" , "" ,
50+ command .Flags ().StringVarP (
51+ & flags .fqbn , "fqbn" , "b" , "" ,
5152 "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 ,
5355 "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 ,
5558 "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" , "" ,
5761 "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" , "" ,
5964 "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 {},
6167 "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" ,
6370 `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 ,
6573 "Optional, turns on verbose mode." )
66- command .Flags ().BoolVar (& flags .quiet , "quiet" , false ,
74+ command .Flags ().BoolVar (
75+ & flags .quiet , "quiet" , false ,
6776 "Optional, supresses almost every output." )
68- command .Flags ().StringVar (& flags .vidPid , "vid-pid" , "" ,
77+ command .Flags ().StringVar (
78+ & flags .vidPid , "vid-pid" , "" ,
6979 "When specified, VID/PID specific build properties are used, if boards supports them." )
7080 return command
7181}
0 commit comments