diff options
Diffstat (limited to 'deps/node/benchmark/_cli.R')
-rw-r--r-- | deps/node/benchmark/_cli.R | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/deps/node/benchmark/_cli.R b/deps/node/benchmark/_cli.R deleted file mode 100644 index 522f6565..00000000 --- a/deps/node/benchmark/_cli.R +++ /dev/null @@ -1,24 +0,0 @@ - -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; - } -} |