lib/u3d/commands_generator.rb in u3d-1.1.1 vs lib/u3d/commands_generator.rb in u3d-1.1.2
- old
+ new
@@ -112,10 +112,11 @@
command :available do |c|
oses = U3dCore::Helper.operating_systems
c.syntax = 'u3d available [-r | --release_level <level>] [-o | --operating_system <OS>] [-u | --unity_version <version>] [-p | --packages] [-f | --force]'
levels = Commands.release_levels
+ c.option '--[no-]central', 'Use or not the central version cache'
c.option '-f', '--force', 'Force refresh list of available versions'
c.option '-r', '--release_level STRING', String, "Checks for availability on specific release level [#{levels.join(', ')}]"
c.option '-o', '--operating_system STRING', String, "Checks for availability on specific OS [#{oses.join(', ')}]"
c.option '-u', '--unity_version STRING', String, 'Checks if specified version is available. Can be a regular expression'
c.option '-p', '--packages', 'Lists available packages as well'
@@ -123,11 +124,17 @@
c.example 'List stable versions available', 'u3d available -r stable -p'
c.example 'List all versions available for Linux platform', 'u3d available -o linux'
c.example 'List packages available for Unity version 5.6.0f3', 'u3d available -u 5.6.0f3 -p'
c.example 'List packages available for Unity version containing the 5.6 string', 'u3d available -u \'5.6\' -p'
c.summary = 'List download-ready versions of Unity'
+ c.description = %(
+#{c.summary}
+This command interprets the information that are available on Unity's website and forums to fetch all the version that are available for download.
+It relies on a centralized cache (https://dragonbox.github.io/unities/v1/versions.json) that performs the fetching automatically so that you don't have to do it locally. If you do not want to use this central cache and wish to perform the fetching yourself, you can use the --no-central option.
+ )
c.action do |_args, options|
options.default packages: false
+ options.default central: true
Commands.list_available(options: convert_options(options))
end
end
command :install do |c|