File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ if (program.list) {
88
88
} else if ( program . listAll ) {
89
89
tldr . listAll ( program . singleColumn ) ;
90
90
} else if ( program . random ) {
91
- tldr . random ( ) ;
91
+ tldr . random ( program ) ;
92
92
} else if ( program . randomExample ) {
93
93
tldr . randomExample ( ) ;
94
94
} else if ( program . clearCache ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ exports.get = (commands, options) => {
32
32
printBestPage ( commands . join ( '-' ) , options ) ;
33
33
} ;
34
34
35
- exports . random = ( ) => {
35
+ exports . random = ( options ) => {
36
36
let os = platform . getPreferredPlatformFolder ( ) ;
37
37
index . commandsFor ( os )
38
38
. then ( ( pages ) => {
@@ -42,7 +42,7 @@ exports.random = () => {
42
42
}
43
43
let page = sample ( pages ) ;
44
44
console . log ( 'PAGE' , page ) ;
45
- printBestPage ( page ) ;
45
+ printBestPage ( page , options ) ;
46
46
} )
47
47
. catch ( ( err ) => {
48
48
console . error ( err ) ;
You can’t perform that action at this time.
0 commit comments