diff options
author | Mark Erickson <merickson@apache.org> | 2016-02-29 15:27:59 -0600 |
---|---|---|
committer | Mark Erickson <merickson@apache.org> | 2016-02-29 15:27:59 -0600 |
commit | b5f126f6d6908796944569cc4c5a5ae2c6614231 (patch) | |
tree | 41223cb580f0f8f57b46334bf2aef2134a594e7e /test/dart | |
parent | b52d03d7a0c1ff2c1fe31c3999127d2daf98bc93 (diff) | |
download | thrift-b5f126f6d6908796944569cc4c5a5ae2c6614231.tar.gz |
THRIFT-3637 Implement compact protocol for dart
This closes #916
Diffstat (limited to 'test/dart')
-rw-r--r-- | test/dart/test_client/bin/main.dart | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/dart/test_client/bin/main.dart b/test/dart/test_client/bin/main.dart index 5ad3cdee2..2f5bb70d0 100644 --- a/test/dart/test_client/bin/main.dart +++ b/test/dart/test_client/bin/main.dart @@ -112,9 +112,13 @@ ArgResults _parseArgs(List<String> args) { }); parser.addOption('protocol', defaultsTo: 'binary', - allowed: ['binary', 'json'], + allowed: ['binary', 'compact', 'json'], help: 'The protocol name', - allowedHelp: {'binary': 'TBinaryProtocol', 'json': 'TJsonProtocol'}); + allowedHelp: { + 'binary': 'TBinaryProtocol', + 'compact': 'TCompactProtocol', + 'json': 'TJsonProtocol' + }); parser.addFlag('verbose', defaultsTo: false); ArgResults results; @@ -132,6 +136,8 @@ ArgResults _parseArgs(List<String> args) { TProtocolFactory getProtocolFactory(String protocolType) { if (protocolType == 'binary') { return new TBinaryProtocolFactory(); + } else if (protocolType == 'compact') { + return new TCompactProtocolFactory(); } else if (protocolType == 'json') { return new TJsonProtocolFactory(); } |