UNPKG

mite-cli

Version:

command line tool for time tracking service mite.de

18 lines (15 loc) 387 B
'use strict'; const option = { definition: '--tracking <true|false>', description: () => ( 'filter for time-entries which are currently running' ), parse: function(input) { if (typeof input !== 'string') { return input; } input = input.toLowerCase().trim(); return ['true', 'yes', 'ja', 'ok', '1'].indexOf(input) > -1; } }; module.exports = option;