cli: fix a commands list error when no addons are in path
This commit is contained in:
		
							parent
							
								
									b402fc7e7d
								
							
						
					
					
						commit
						8d1b1fbfc5
					
				| @ -264,7 +264,6 @@ Misc: | ||||
|  rewrite              add automated postings to certain transactions | ||||
|  test                 run some self tests | ||||
| OTHERCMDS | ||||
| 
 | ||||
| Help: (see also -h, CMD -h, --help|---man|--info) | ||||
|  help|man|info        show any of the hledger manuals in text/man/info format | ||||
| |] | ||||
| @ -291,7 +290,7 @@ printCommandsList addonsFound = putStr commandsList | ||||
|     adjustline l = [l] | ||||
| 
 | ||||
|     commandsList1 = | ||||
|       regexReplace "OTHERCMDS" (init $ unlines [' ':w | w <- unknownCommandsFound]) $ | ||||
|       regexReplace "OTHERCMDS" (unlines [' ':w | w <- unknownCommandsFound]) $ | ||||
|       unlines $ concatMap adjustline $ lines commandsListTemplate | ||||
| 
 | ||||
|     commandsList = | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user