mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #6430 from ethereum/fuzzhelp
Fix --help parameter for solfuzzer
This commit is contained in:
		
						commit
						e7340f2126
					
				| @ -84,18 +84,22 @@ Allowed options)", | ||||
| 		return 1; | ||||
| 	} | ||||
| 
 | ||||
| 	if (arguments.count("quiet")) | ||||
| 		quiet = true; | ||||
| 
 | ||||
| 	if (arguments.count("help")) | ||||
| 	{ | ||||
| 		cout << options; | ||||
| 		return 0; | ||||
| 	} | ||||
| 
 | ||||
| 	string input; | ||||
| 	if (arguments.count("input-file")) | ||||
| 		input = readFileAsString(arguments["input-file"].as<string>()); | ||||
| 	else | ||||
| 		input = readStandardInput(); | ||||
| 
 | ||||
| 	if (arguments.count("quiet")) | ||||
| 		quiet = true; | ||||
| 
 | ||||
| 	if (arguments.count("help")) | ||||
| 		cout << options; | ||||
| 	else if (arguments.count("const-opt")) | ||||
| 	if (arguments.count("const-opt")) | ||||
| 		FuzzerUtil::testConstantOptimizer(input, quiet); | ||||
| 	else if (arguments.count("standard-json")) | ||||
| 		FuzzerUtil::testStandardCompiler(input, quiet); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user