const iliasLib = require("../lib/libIlias") const db = require("../lib/db") const yargs = require("yargs") ///////////////////////////////////////////////////////////////////////// const argv = yargs .usage("$0 [offset] [limit]", "get users from ILIAS",) .strict() .parse() run(argv) .then(console.log) .catch(console.error) .finally(process.exit) async function run({offset, limit}) { offset = offset || 0 limit = limit || 3 return await db.getUsers(offset, limit) }