Index: trunk/phase3/maintenance/mcc.php |
— | — | @@ -42,6 +42,10 @@ |
43 | 43 | print "delete: deletes something\n"; |
44 | 44 | if($onlyone) { break; } |
45 | 45 | |
| 46 | + case 'history': |
| 47 | + print "history: show command line history\n"; |
| 48 | + if($onlyone) { break; } |
| 49 | + |
46 | 50 | case 'dumpmcc': |
47 | 51 | print "dumpmcc: shows the whole thing\n"; |
48 | 52 | if($onlyone) { break; } |
— | — | @@ -123,6 +127,14 @@ |
124 | 128 | } |
125 | 129 | break; |
126 | 130 | |
| 131 | + case 'history': |
| 132 | + if ( function_exists( 'readline_list_history' ) ) { |
| 133 | + print_r(readline_list_history()); |
| 134 | + } else { |
| 135 | + print "readline_list_history() not available\n"; |
| 136 | + } |
| 137 | + break; |
| 138 | + |
127 | 139 | case 'dumpmcc': |
128 | 140 | var_dump( $mcc ); |
129 | 141 | break; |