From 907f207d3b4535f98fd115439fd36c43b64f311f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 29 May 2011 17:17:31 +0100 Subject: Use newer cliapp API for adding new settings. --- humanify | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'humanify') diff --git a/humanify b/humanify index b7e69de..32454fc 100755 --- a/humanify +++ b/humanify @@ -45,11 +45,10 @@ class Humanify(cliapp.Application): ] def add_settings(self): - self.settings.add_boolean_setting(['binary', 'iec'], - 'use 10-based, not 2-based prefixes ' - '(ISO vs IEC)') - self.settings.add_boolean_setting(['bits'], - 'inputs give numbers of bits') + self.settings.boolean(['binary', 'iec'], + 'use 10-based, not 2-based prefixes ' + '(ISO vs IEC)') + self.settings.boolean(['bits'], 'inputs give numbers of bits') def process_args(self, args): self.units = self.determine_units() -- cgit v1.2.1