mirror of
				https://github.com/flynx/argv.js.git
				synced 2025-10-31 11:40:07 +00:00 
			
		
		
		
	docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									dbd7653e23
								
							
						
					
					
						commit
						28711d7462
					
				
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							| @ -154,11 +154,11 @@ var parser = argv.Parser({ | |||||||
| 
 | 
 | ||||||
| 		// Basic options | 		// Basic options | ||||||
| 		// | 		// | ||||||
| 		// These simply asign a value to an attribute on the parsed  | 		// These if encountered simply asign a value to an attribute on the  | ||||||
| 		// object... | 		// parsed object... | ||||||
| 		// | 		// | ||||||
| 		// If no value is given true is asigned to indicate that the  | 		// If no value is given true is asigned to indicate that the  | ||||||
| 		// option/command was given. | 		// option/command is present in the commandline. | ||||||
| 
 | 
 | ||||||
| 		'-bool': { | 		'-bool': { | ||||||
| 			doc: 'if given set .bool to true' }, | 			doc: 'if given set .bool to true' }, | ||||||
| @ -172,8 +172,8 @@ var parser = argv.Parser({ | |||||||
| 			// value will be written... | 			// value will be written... | ||||||
| 			arg: 'X | x', | 			arg: 'X | x', | ||||||
| 
 | 
 | ||||||
| 			// the value is optional by default but we can make it required by... | 			// the value is optional by default but we can make it required... | ||||||
| 			//valueRequired: true, | 			valueRequired: true, | ||||||
| 		}, | 		}, | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -249,7 +249,8 @@ var parser = argv.Parser({ | |||||||
| 
 | 
 | ||||||
| 		// Active options/commnads  | 		// Active options/commnads  | ||||||
| 		// | 		// | ||||||
| 		// These define .handler's... | 		// These define .handler's which are executed when the option is  | ||||||
|  | 		// encountered by the parser... | ||||||
| 
 | 
 | ||||||
| 		'-active': { | 		'-active': { | ||||||
| 			doc: 'basic active option', | 			doc: 'basic active option', | ||||||
| @ -273,8 +274,6 @@ var parser = argv.Parser({ | |||||||
| 			}).then(function(){ | 			}).then(function(){ | ||||||
| 				// ... | 				// ... | ||||||
| 			}), | 			}), | ||||||
| 
 |  | ||||||
| 		// ... |  | ||||||
| 	}) | 	}) | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user