summaryrefslogtreecommitdiff
path: root/mksparse
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-29 17:17:31 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-29 17:17:31 +0100
commit907f207d3b4535f98fd115439fd36c43b64f311f (patch)
treefd47174cf2a92e119cd979bf4f01395c4bac0464 /mksparse
parentfdaec97979044db0d9cf36d5ed5344ca1745fa00 (diff)
downloadextrautils-907f207d3b4535f98fd115439fd36c43b64f311f.tar.gz
Use newer cliapp API for adding new settings.
Diffstat (limited to 'mksparse')
-rwxr-xr-xmksparse3
1 files changed, 1 insertions, 2 deletions
diff --git a/mksparse b/mksparse
index 8d88399..bc5e28f 100755
--- a/mksparse
+++ b/mksparse
@@ -6,8 +6,7 @@ import cliapp
class MakeSparseFile(cliapp.Application):
def add_settings(self):
- self.settings.add_bytesize_setting(['size'],
- 'size of whole to append to file')
+ self.settings.bytesize(['size'], 'size of whole to append to file')
def process_args(self, filenames):
if self.settings['size'] > 0: