diff --git a/lib/u3d/commands.rb b/lib/u3d/commands.rb index fcd04eae..696b331a 100644 --- a/lib/u3d/commands.rb +++ b/lib/u3d/commands.rb @@ -195,7 +195,7 @@ def credentials(args: []) end end - def licenses(_args) + def licenses U3d::License.licenses.sort_by { |l| l['LicenseVersion'] }.each do |license| UI.message "#{license.path}: #{license['LicenseVersion']} #{license.number} #{license['UpdateDate']}" end diff --git a/lib/u3d/commands_generator.rb b/lib/u3d/commands_generator.rb index c5f16b32..8218fef6 100644 --- a/lib/u3d/commands_generator.rb +++ b/lib/u3d/commands_generator.rb @@ -192,8 +192,8 @@ def run command :licenses do |c| c.syntax = "u3d licenses" c.description = 'Prints Unity license information.' - c.action do |args, _options| - Commands.licenses(args: args) + c.action do |_args, _options| + Commands.licenses end end