#!/usr/bin/ruby

require 'extremezip.zzaqsv'

if (ARGV.empty? ) #未指定命令行参数。
else #指定了命令行参数。
    $rootPath=ARGV[0] #记录要打包的目录树的根目录。
    
    exzObject=ExtremeZip.new #创建压缩对象
    
    exzObject.exz($rootPath) #压缩
end
