summaryrefslogtreecommitdiff
path: root/humanify
diff options
context:
space:
mode:
Diffstat (limited to 'humanify')
-rwxr-xr-xhumanify9
1 files changed, 4 insertions, 5 deletions
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()