@@ -71,18 +71,13 @@ type GlobalArgs struct {
7171 When string `advarg:"when"`
7272}
7373
74- // LaunchSetNameArgs contains optional launcher set-name advanced arguments.
75- type LaunchSetNameArgs struct {
74+ // LaunchArgs contains advanced arguments for the launch command.
75+ type LaunchArgs struct {
76+ GlobalArgs
7677 // SetName specifies a platform-defined launch profile/core name override.
7778 SetName string `advarg:"set_name"`
7879 // SetNameSameDir controls whether SetName should keep the original game directory.
7980 SetNameSameDir string `advarg:"set_name_same_dir"`
80- }
81-
82- // LaunchArgs contains advanced arguments for the launch command.
83- type LaunchArgs struct {
84- GlobalArgs
85- LaunchSetNameArgs
8681 // Launcher overrides the default launcher by ID.
8782 Launcher string `advarg:"launcher" validate:"omitempty,launcher"` //nolint:revive // custom validator
8883 // System specifies the target system for path resolution.
@@ -98,7 +93,10 @@ type LaunchArgs struct {
9893// LaunchRandomArgs contains advanced arguments for the launch.random command.
9994type LaunchRandomArgs struct {
10095 GlobalArgs
101- LaunchSetNameArgs
96+ // SetName specifies a platform-defined launch profile/core name override.
97+ SetName string `advarg:"set_name"`
98+ // SetNameSameDir controls whether SetName should keep the original game directory.
99+ SetNameSameDir string `advarg:"set_name_same_dir"`
102100 // Launcher overrides the default launcher by ID.
103101 Launcher string `advarg:"launcher" validate:"omitempty,launcher"` //nolint:revive // custom validator
104102 // Action specifies the launch action (run, details).
@@ -110,7 +108,10 @@ type LaunchRandomArgs struct {
110108// LaunchSearchArgs contains advanced arguments for the launch.search command.
111109type LaunchSearchArgs struct {
112110 GlobalArgs
113- LaunchSetNameArgs
111+ // SetName specifies a platform-defined launch profile/core name override.
112+ SetName string `advarg:"set_name"`
113+ // SetNameSameDir controls whether SetName should keep the original game directory.
114+ SetNameSameDir string `advarg:"set_name_same_dir"`
114115 // Launcher overrides the default launcher by ID.
115116 Launcher string `advarg:"launcher" validate:"omitempty,launcher"` //nolint:revive // custom validator
116117 // Action specifies the launch action (run, details).
@@ -122,7 +123,10 @@ type LaunchSearchArgs struct {
122123// LaunchTitleArgs contains advanced arguments for the launch.title command.
123124type LaunchTitleArgs struct {
124125 GlobalArgs
125- LaunchSetNameArgs
126+ // SetName specifies a platform-defined launch profile/core name override.
127+ SetName string `advarg:"set_name"`
128+ // SetNameSameDir controls whether SetName should keep the original game directory.
129+ SetNameSameDir string `advarg:"set_name_same_dir"`
126130 // Launcher overrides the default launcher by ID.
127131 Launcher string `advarg:"launcher" validate:"omitempty,launcher"` //nolint:revive // custom validator
128132 // Action specifies the launch action (run, details).
@@ -134,7 +138,10 @@ type LaunchTitleArgs struct {
134138// LaunchLastArgs contains advanced arguments for the launch.last command.
135139type LaunchLastArgs struct {
136140 GlobalArgs
137- LaunchSetNameArgs
141+ // SetName specifies a platform-defined launch profile/core name override.
142+ SetName string `advarg:"set_name"`
143+ // SetNameSameDir controls whether SetName should keep the original game directory.
144+ SetNameSameDir string `advarg:"set_name_same_dir"`
138145 // Launcher overrides the default launcher by ID.
139146 Launcher string `advarg:"launcher" validate:"omitempty,launcher"` //nolint:revive // custom validator
140147 // Action specifies the launch action (run, details).
0 commit comments