/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.3.1
benchmark/_cli.R
23 строки
494 B
Andreas Madsen
benchmark: use t-test for comparing node versions
26 июл 2016, 14:21
26 июл 2016, 14:21
855009a
Код
Авторство
О чём код?
args = commandArgs(TRUE); args.options = list(); temp.option.key = NULL; for (arg in args) { # Optional arguments declaration if (substring(arg, 1, 1) == '-') { temp.option.key = substring(arg, 2); if (substring(arg, 2, 2) == '-') { temp.option.key = substring(arg, 3); } args.options[[temp.option.key]] = TRUE; } # Optional arguments value else if (!is.null(temp.option.key)) { args.options[[temp.option.key]] = arg; temp.option.key = NULL; } }