From 74d9866867cc38dd0857b071c0ed09d4fb7512ef Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 8 Aug 2011 14:36:27 +0100 Subject: Add --output-format setting. --- summain | 3 +++ 1 file changed, 3 insertions(+) (limited to 'summain') diff --git a/summain b/summain index 7082594..1525570 100755 --- a/summain +++ b/summain @@ -39,6 +39,9 @@ class Summain(cliapp.Application): 'MD5, SHA1, SHA224, SHA256, SHA384, SHA512; ' 'use once per checksum type ' '(default is SHA1)') + self.settings.choice(['output-format', 'f'], + ['rfc822', 'csv', 'json'], + 'choose output format (rfc822, csv, json)') def files(self, root): if os.path.isdir(root): -- cgit v1.2.1