mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Remove some
This commit is contained in:
@@ -14,12 +14,12 @@ module.exports = class LockdownCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: 'Please enter either `start` or `stop`.',
|
||||
prompt: 'Please enter either start or stop.',
|
||||
type: 'string',
|
||||
default: 'start',
|
||||
validate: (type) => {
|
||||
if (['start', 'stop'].includes(type.toLowerCase())) return true;
|
||||
else return 'Please enter either `start` or `stop`.';
|
||||
else return 'Please enter either start or stop.';
|
||||
},
|
||||
parse: (type) => type.toLowerCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user