diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-06-20 14:13:13 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-06-24 16:30:34 +0100 |
commit | 87c34803377fad1634dfd60a5e48c30a5d2ef4aa (patch) | |
tree | 664e7db7ee0dd1b3808921c0d346d23201b4e90f /cli | |
parent | 66b7bcc2be115fb1528b6bdf75798e60cc59721f (diff) |
cli/pickle: Pass argument names.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli_pickle.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/cli_pickle.cpp b/cli/cli_pickle.cpp index 8ea507be..e7f51ff9 100644 --- a/cli/cli_pickle.cpp +++ b/cli/cli_pickle.cpp @@ -172,11 +172,18 @@ public: writer.beginList(); for (unsigned i = 0; i < call->args.size(); ++i) { + writer.beginTuple(2); + if (i < call->sig->num_args) { + writer.writeString(call->sig->arg_names[i]); + } else { + writer.writeNone(); + } if (call->args[i].value) { _visit(call->args[i].value); } else { writer.writeNone(); } + writer.endTuple(2); } writer.endList(); |