Add a --version aliased to -v option to the mco script that returns the version.
Signed-off-by: R.I.Pienaar <[email protected]> --- Local-branch: feature/master/7822 mco | 7 +++++++ website/changelog.md | 1 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/mco b/mco index 85eaac3..f135c3a 100755 --- a/mco +++ b/mco @@ -2,6 +2,13 @@ require 'mcollective' +OptionParser.new do |opts| + opts.on("--version", "-v", "Version information") do + puts MCollective.version + exit + end +end.parse! + known_applications = MCollective::Applications.list # links from mc-ping to mc will result in ping being run diff --git a/website/changelog.md b/website/changelog.md index 34a8144..58b971e 100644 --- a/website/changelog.md +++ b/website/changelog.md @@ -11,6 +11,7 @@ title: Changelog |Date|Description|Ticket| |----|-----------|------| +|2011/06/07|Add a --version option to the mco command|7822| |2011/06/06|Remove the sshkey, it's being moved to the plugin repository|7794| |2011/06/02|Correct parsing of MCOLLECTIVE_EXTRA_OPTS in cases where no config related settings were set|7755| |2011/05/31|Disconnect from the middleware when an application calls exit|7712| -- 1.7.1 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
