INNER CODE UNIT · JavaScript

collect

opentimestamps/javascript-opentimestamps · ots-cli.js:21

function collect (val, memo) {
  memo.push(val)
  return memo
}

program
  .version(require('./package.json').version)
  .option('-v, --verbose', 'Be more verbose.')
  .option('-l, --whitelist <url>', 'Add a calendar to the whitelist.', collect, [])
  .option('--no-default-whitelist', 'Do not load the default remote calendar whitelist; ' +
        'contact only calendars that have been manually added with --whitelist')

const infoCommand = program
  .command('info [FILE_OTS]')
  .alias('i')
  .description('Show information on a timestamp.')
  .action((file, options) => {
    isExecuted = true

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…