| 
									
										
										
										
											2013-08-09 15:10:24 -07:00
										 |  |  | package command | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"flag" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-09 15:21:24 -07:00
										 |  |  | // BuildOptionFlags sets the proper command line flags needed for | 
					
						
							|  |  |  | // build options. | 
					
						
							|  |  |  | func BuildOptionFlags(fs *flag.FlagSet, f *BuildOptions) { | 
					
						
							| 
									
										
										
										
											2013-08-09 15:10:24 -07:00
										 |  |  | 	fs.Var((*SliceValue)(&f.Except), "except", "build all builds except these") | 
					
						
							|  |  |  | 	fs.Var((*SliceValue)(&f.Only), "only", "only build the given builds by name") | 
					
						
							|  |  |  | } |