cli: fix false positive -e + -l detection
This commit is contained in:
parent
c2bff09c58
commit
5ef92b9c50
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ var options = {
|
|||
't':{alias:'theme',type:'array',describe:'theme name or path (mutliple values allowed)'},
|
||||
'e':{alias:'examples',type:'boolean',describe:'list examples instead of recent sessions',
|
||||
check: (e,argv)=>{
|
||||
return (!argv.l) ?
|
||||
return (!e || !argv.l) ?
|
||||
true : 'examples can\'t be listed if --load is set'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue