|
|
@@ -24,6 +24,8 @@ def setup(self, sub): |
|
|
|
).completer = self.complete.time |
|
|
|
|
|
|
|
group = cmd.add_argument_group("Output format") |
|
|
|
group.add_argument("-B", "--binary", action="store_true", |
|
|
|
help="Raw binary output") |
|
|
|
group.add_argument("-b", "--bare", action="store_true", |
|
|
|
help="Exclude timestamps from output lines") |
|
|
|
group.add_argument("-a", "--annotate", action="store_true", |
|
|
@@ -42,6 +44,11 @@ def cmd_extract_verify(self): |
|
|
|
if self.args.start > self.args.end: |
|
|
|
self.parser.error("start is after end") |
|
|
|
|
|
|
|
if self.args.binary: |
|
|
|
if (self.args.bare or self.args.annotate or self.args.markup or |
|
|
|
self.args.timestamp_raw or self.args.count): |
|
|
|
self.parser.error("--binary cannot be combined with other options") |
|
|
|
|
|
|
|
def cmd_extract(self): |
|
|
|
streams = self.client.stream_list(self.args.path) |
|
|
|
if len(streams) != 1: |
|
|
@@ -64,7 +71,8 @@ def cmd_extract(self): |
|
|
|
self.args.start, |
|
|
|
self.args.end, |
|
|
|
self.args.count, |
|
|
|
self.args.markup): |
|
|
|
self.args.markup, |
|
|
|
self.args.binary): |
|
|
|
if self.args.bare and not self.args.count: |
|
|
|
# Strip timestamp (first element). Doesn't make sense |
|
|
|
# if we are only returning a count. |
|
|
|