Leave out subcommands with only one letter
This commit is contained in:
		
							parent
							
								
									43b3fb3cae
								
							
						
					
					
						commit
						13c4235730
					
				| @ -9,7 +9,11 @@ main() { | ||||
|     cat > "$tmp" | ||||
| 
 | ||||
|     sed -rn 's/^ ([-a-z]+).*/\1/gp' "$tmp" | ||||
|     sed -rn 's/^ .*\(([a-z]+)\).*/\1/gp' "$tmp" | ||||
| 
 | ||||
|     # Do not output single letter commands, it's not useful. | ||||
|     sed -rn 's/^ .*\(([a-z]+)\).*/\1/gp' "$tmp" \ | ||||
| 	| grep -v ^.$ | ||||
| 
 | ||||
|     # TODO missing: (reg, r)  (multiple aliases) | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user