cli: prevent --examples + --load as the latter bypasses the first
This commit is contained in:
parent
af30b32c72
commit
6881e8cfc9
1 changed files with 6 additions and 1 deletions
|
|
@ -42,7 +42,12 @@ 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'}
|
||||
'e':{alias:'examples',type:'boolean',describe:'list examples instead of recent sessions',
|
||||
check: (e,argv)=>{
|
||||
return (!argv.l) ?
|
||||
true : 'examples can\'t be listed if --load is set'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue