Skip to content

Commit 8ada07e

Browse files
lmartorellacomick
authored andcommitted
- Added possibility to manaully specify arg names/types
1 parent f2fbb32 commit 8ada07e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/robotremote.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ function Server(libraries, options, listeningCallback) {
2929
for (var keywordName in lib) {
3030
if (lib.hasOwnProperty(keywordName)) {
3131
var keyword = lib[keywordName];
32-
// Get parameter count and names.
33-
keyword.args = getParamNames(keyword.toString());
32+
// Get parameter count and names, if not manually specified (e.g. to specify **kwargs or *args)
33+
if (!keyword.args) {
34+
keyword.args = getParamNames(keyword.toString());
35+
}
3436
if (!keyword.doc) {
3537
keyword.doc = '';
3638
}
@@ -191,7 +193,7 @@ function KeywordLogger(writeOutput) {
191193
function createClient(options) {
192194
var Promise = require('promise');
193195
var result = new Promise(function (resolve, reject) {
194-
options.path = '/';
196+
//options.path = '/';
195197
var client = xmlrpc.createClient(options);
196198
var keywords = {};
197199
client.methodCall('get_keyword_names', [], function (err, val) {

0 commit comments

Comments
 (0)