Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Mar 9, 2018
1 parent 1f2b841 commit dc6757c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/u3d/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/u3d/commands_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dc6757c

Please sign in to comment.