mirror of
https://github.com/munki/munki.git
synced 2026-04-24 05:49:42 -05:00
Removed abandoned Adobe options from usage check.
git-svn-id: http://munki.googlecode.com/svn/trunk@842 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -274,7 +274,8 @@ def check_mode(option, opt, value, parser):
|
||||
|
||||
def main():
|
||||
'''Main routine'''
|
||||
usage = "usage: %prog [options] [/path/to/installeritem]"
|
||||
usage = """usage: %prog [options] [/path/to/installeritem]
|
||||
%prog --help for more information."""
|
||||
p = optparse.OptionParser(usage=usage)
|
||||
p.add_option('--file', '-f', action="append",
|
||||
help='''Path to a filesystem item installed by this
|
||||
@@ -385,12 +386,8 @@ def main():
|
||||
|
||||
options, arguments = p.parse_args()
|
||||
|
||||
if len(arguments) == 0 and \
|
||||
not (options.file or options.installxml or options.uninstallxml
|
||||
or options.serialnumber):
|
||||
print >> sys.stderr, \
|
||||
("Need to specify an installer item (.pkg, .mpkg, .dmg) "
|
||||
"and/or --file and/or Adobe installer options!")
|
||||
if len(arguments) == 0 and not options.file:
|
||||
p.print_usage()
|
||||
exit(-1)
|
||||
|
||||
if len(arguments) > 1:
|
||||
|
||||
Reference in New Issue
Block a user