@@ -40,30 +40,32 @@ new Command()
40
40
. example ( "unity-changeset list --lts --latest-patch" , "List changesets of the latest patch versions (LTS only)." )
41
41
// Search options.
42
42
. group ( "Search options" )
43
- . option ( "--all" , "Search all changesets (alpha/beta included)" , { conflicts : [ "beta" ] } )
44
- . option ( "--beta" , "Search only pre-release (alpha/beta) changesets" , { conflicts : [ "all" ] } )
43
+ . option ( "--archive" , "Search archived changesets (default, alpha/beta not included)" )
44
+ . option ( "--all" , "Search all changesets (alpha/beta included)" , { conflicts : [ "archive" , "pre-release" ] } )
45
+ . option ( "--pre-release, --beta" , "Search only pre-release (alpha/beta) changesets" , { conflicts : [ "archive" , "all" ] } )
45
46
// Filter options.
46
47
. group ( "Filter options" )
47
48
. option ( "--min <version>" , "Minimum version (included)" )
48
49
. option ( "--max <version>" , "Maximum version (included)" )
49
50
. option ( "--grep <regex>" , "Regular expression (e.g. '20(18|19).4.*')" )
50
51
. option ( "--latest-lifecycle" , "Only the latest lifecycle (default)" )
51
52
. option ( "--all-lifecycles" , "All lifecycles" , { conflicts : [ "latest-lifecycle" ] } )
53
+ . option ( "--lts" , "Only the LTS versions" , { conflicts : [ "pre-release" ] } )
52
54
// Group options.
53
55
. group ( "Group options" )
54
56
. option ( "--latest-patch" , "The latest patch versions only" )
55
57
. option ( "--oldest-patch" , "The oldest patch versions in lateat lifecycle only" , { conflicts : [ "latest-patch" ] } )
56
58
// Output options.
57
59
. group ( "Output options" )
58
- . option ( "--versions" , "Outputs only the version (no changesets)" )
59
- . option ( "--minor-versions" , "Outputs only the minor version (no changesets)" , { conflicts : [ "version-only" ] } )
60
+ . option ( "--version-only, -- versions" , "Outputs only the version (no changesets)" )
61
+ . option ( "--minor-version-only, --minor- versions" , "Outputs only the minor version (no changesets)" , { conflicts : [ "version-only" ] } )
60
62
. option ( "--json" , "Output in json format" )
61
63
. option ( "--pretty-json" , "Output in pretty json format" )
62
64
. action ( ( options ) => {
63
65
// Search mode.
64
66
const searchMode = options . all
65
67
? SearchMode . All
66
- : options . beta
68
+ : options . preRelease
67
69
? SearchMode . PreRelease
68
70
: SearchMode . Archived ;
69
71
@@ -82,13 +84,13 @@ new Command()
82
84
allLifecycles : ( options . allLifecycles && ! options . latestLifecycle )
83
85
? true
84
86
: false ,
85
- lts : false ,
87
+ lts : options . lts || false ,
86
88
} ;
87
89
88
90
// Output mode.
89
- const outputMode = options . versions
91
+ const outputMode = options . versionOnly
90
92
? OutputMode . VersionOnly
91
- : options . minorVersions
93
+ : options . minorVersionOnly
92
94
? OutputMode . MinorVersionOnly
93
95
: OutputMode . Changeset ;
94
96
0 commit comments