mirror of
https://github.com/munki/munki.git
synced 2026-05-02 10:19:32 -05:00
Added -V option to managedsoftwareupdate to print the version of the munki tools.
git-svn-id: http://munki.googlecode.com/svn/trunk@304 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -189,9 +189,16 @@ def main():
|
||||
help="Check for updates, but don't install them.")
|
||||
p.add_option('--installonly', action='store_true',
|
||||
help='Skip checking and install any pending updates.')
|
||||
p.add_option('--version', '-V', action='store_true',
|
||||
help='Print the version of the munki tools and exit.')
|
||||
|
||||
|
||||
options, arguments = p.parse_args()
|
||||
|
||||
if options.version:
|
||||
print munkicommon.version()
|
||||
exit(0)
|
||||
|
||||
if options.auto:
|
||||
# typically invoked by a launch daemon periodically
|
||||
# munkistatusoutput is false for checking, but true for installing
|
||||
|
||||
Reference in New Issue
Block a user