@@ -88,150 +88,176 @@ pub struct ExecutablePaths {
88
88
#[ arg( long) ]
89
89
#[ arg( global = true ) ]
90
90
#[ arg( default_value = DEFAULT_COMPRESS_PATH ) ]
91
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
91
92
#[ arg( help = "Specify the path of your compress executable binary file" ) ]
92
93
pub compress_path : String ,
93
94
94
95
#[ arg( long) ]
95
96
#[ arg( global = true ) ]
96
97
#[ arg( default_value = DEFAULT_ZIP_PATH ) ]
98
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
97
99
#[ arg( help = "Specify the path of your zip executable binary file" ) ]
98
100
pub zip_path : String ,
99
101
100
102
#[ arg( long) ]
101
103
#[ arg( global = true ) ]
102
104
#[ arg( default_value = DEFAULT_UNZIP_PATH ) ]
105
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
103
106
#[ arg( help = "Specify the path of your unzip executable binary file" ) ]
104
107
pub unzip_path : String ,
105
108
106
109
#[ arg( long) ]
107
110
#[ arg( global = true ) ]
108
111
#[ arg( default_value = DEFAULT_GZIP_PATH ) ]
112
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
109
113
#[ arg( help = "Specify the path of your gzip executable binary file" ) ]
110
114
pub gzip_path : String ,
111
115
112
116
#[ arg( long) ]
113
117
#[ arg( global = true ) ]
114
118
#[ arg( default_value = DEFAULT_GUNZIP_PATH ) ]
119
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
115
120
#[ arg( help = "Specify the path of your gunzip executable binary file" ) ]
116
121
pub gnuzip_path : String ,
117
122
118
123
#[ arg( long) ]
119
124
#[ arg( global = true ) ]
120
125
#[ arg( default_value = DEFAULT_PIGZ_PATH ) ]
126
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
121
127
#[ arg( help = "Specify the path of your pigz executable binary file" ) ]
122
128
pub pigz_path : String ,
123
129
124
130
#[ arg( long) ]
125
131
#[ arg( global = true ) ]
126
132
#[ arg( default_value = DEFAULT_BZIP2_PATH ) ]
133
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
127
134
#[ arg( help = "Specify the path of your bzip2 executable binary file" ) ]
128
135
pub bzip2_path : String ,
129
136
130
137
#[ arg( long) ]
131
138
#[ arg( global = true ) ]
132
139
#[ arg( default_value = DEFAULT_BUNZIP2_PATH ) ]
140
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
133
141
#[ arg( help = "Specify the path of your bunzip2 executable binary file" ) ]
134
142
pub bunzip2_path : String ,
135
143
136
144
#[ arg( long) ]
137
145
#[ arg( global = true ) ]
138
146
#[ arg( default_value = DEFAULT_LBZIP2_PATH ) ]
147
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
139
148
#[ arg( help = "Specify the path of your lbzip2 executable binary file" ) ]
140
149
pub lbzip2_path : String ,
141
150
142
151
#[ arg( long) ]
143
152
#[ arg( global = true ) ]
144
153
#[ arg( default_value = DEFAULT_PBZIP2_PATH ) ]
154
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
145
155
#[ arg( help = "Specify the path of your pbzip2 executable binary file" ) ]
146
156
pub pbzip2_path : String ,
147
157
148
158
#[ arg( long) ]
149
159
#[ arg( global = true ) ]
150
160
#[ arg( default_value = DEFAULT_LZIP_PATH ) ]
161
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
151
162
#[ arg( help = "Specify the path of your lzip executable binary file" ) ]
152
163
pub lzip_path : String ,
153
164
154
165
#[ arg( long) ]
155
166
#[ arg( global = true ) ]
156
167
#[ arg( default_value = DEFAULT_LUNZIP_PATH ) ]
168
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
157
169
#[ arg( help = "Specify the path of your lunzip executable binary file" ) ]
158
170
pub lunzip_path : String ,
159
171
160
172
#[ arg( long) ]
161
173
#[ arg( global = true ) ]
162
174
#[ arg( default_value = DEFAULT_PLZIP_PATH ) ]
175
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
163
176
#[ arg( help = "Specify the path of your plzip executable binary file" ) ]
164
177
pub plzip_path : String ,
165
178
166
179
#[ arg( long) ]
167
180
#[ arg( global = true ) ]
168
181
#[ arg( default_value = DEFAULT_XZ_PATH ) ]
182
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
169
183
#[ arg( help = "Specify the path of your xz executable binary file" ) ]
170
184
pub xz_path : String ,
171
185
172
186
#[ arg( long) ]
173
187
#[ arg( global = true ) ]
174
188
#[ arg( default_value = DEFAULT_UNXZ_PATH ) ]
189
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
175
190
#[ arg( help = "Specify the path of your unxz executable binary file" ) ]
176
191
pub unxz_path : String ,
177
192
178
193
#[ arg( long) ]
179
194
#[ arg( global = true ) ]
180
195
#[ arg( default_value = DEFAULT_PXZ_PATH ) ]
196
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
181
197
#[ arg( help = "Specify the path of your pxz executable binary file" ) ]
182
198
pub pxz_path : String ,
183
199
184
200
#[ arg( long) ]
185
201
#[ arg( global = true ) ]
186
202
#[ arg( default_value = DEFAULT_LZMA_PATH ) ]
203
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
187
204
#[ arg( help = "Specify the path of your lzma executable binary file" ) ]
188
205
pub lzma_path : String ,
189
206
190
207
#[ arg( long) ]
191
208
#[ arg( global = true ) ]
192
209
#[ arg( default_value = DEFAULT_UNLZMA_PATH ) ]
210
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
193
211
#[ arg( help = "Specify the path of your unlzma executable binary file" ) ]
194
212
pub unlzma_path : String ,
195
213
196
- #[ arg( long = "7Z_PATH" ) ]
214
+ #[ arg( name = "7z-path" ) ]
215
+ #[ arg( long) ]
197
216
#[ arg( global = true ) ]
198
217
#[ arg( default_value = DEFAULT_7Z_PATH ) ]
218
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
199
219
#[ arg( help = "Specify the path of your 7z executable binary file" ) ]
200
220
pub p7z_path : String ,
201
221
202
222
#[ arg( long) ]
203
223
#[ arg( global = true ) ]
204
224
#[ arg( default_value = DEFAULT_TAR_PATH ) ]
225
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
205
226
#[ arg( help = "Specify the path of your tar executable binary file" ) ]
206
227
pub tar_path : String ,
207
228
208
229
#[ arg( long) ]
209
230
#[ arg( global = true ) ]
210
231
#[ arg( default_value = DEFAULT_RAR_PATH ) ]
232
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
211
233
#[ arg( help = "Specify the path of your rar executable binary file" ) ]
212
234
pub rar_path : String ,
213
235
214
236
#[ arg( long) ]
215
237
#[ arg( global = true ) ]
216
238
#[ arg( default_value = DEFAULT_UNRAR_PATH ) ]
239
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
217
240
#[ arg( help = "Specify the path of your unrar executable binary file" ) ]
218
241
pub unrar_path : String ,
219
242
220
243
#[ arg( long) ]
221
244
#[ arg( global = true ) ]
222
245
#[ arg( default_value = DEFAULT_ZSTD_PATH ) ]
246
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
223
247
#[ arg( help = "Specify the path of your zstd executable binary file" ) ]
224
248
pub zstd_path : String ,
225
249
226
250
#[ arg( long) ]
227
251
#[ arg( global = true ) ]
228
252
#[ arg( default_value = DEFAULT_UNZSTD_PATH ) ]
253
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
229
254
#[ arg( help = "Specify the path of your unzstd executable binary file" ) ]
230
255
pub unzstd_path : String ,
231
256
232
257
#[ arg( long) ]
233
258
#[ arg( global = true ) ]
234
259
#[ arg( default_value = DEFAULT_PZSTD_PATH ) ]
260
+ #[ arg( value_hint = clap:: ValueHint :: CommandName ) ]
235
261
#[ arg( help = "Specify the path of your pzstd executable binary file" ) ]
236
262
pub pzstd_path : String ,
237
263
}
@@ -241,14 +267,17 @@ pub enum CLICommands {
241
267
#[ command( about = "Extract files with full path" ) ]
242
268
#[ command( after_help = AFTER_HELP ) ]
243
269
X {
270
+ #[ arg( value_hint = clap:: ValueHint :: FilePath ) ]
244
271
#[ arg(
245
272
help = "Assign the source of your original files. It should be at least one file path"
246
273
) ]
247
274
input_path : PathBuf ,
248
- #[ arg( help = "Assign a destination of your extracted files. It should be a directory path" ) ]
275
+ #[ arg( value_hint = clap :: ValueHint :: DirPath ) ]
249
276
#[ arg( conflicts_with = "output" ) ]
277
+ #[ arg( help = "Assign a destination of your extracted files. It should be a directory path" ) ]
250
278
output_path : Option < PathBuf > ,
251
279
#[ arg( short, long) ]
280
+ #[ arg( value_hint = clap:: ValueHint :: DirPath ) ]
252
281
#[ arg( conflicts_with = "output_path" ) ]
253
282
#[ arg( help = "Assign a destination of your extracted files. It should be a directory path" ) ]
254
283
output : Option < PathBuf > ,
@@ -259,11 +288,13 @@ pub enum CLICommands {
259
288
#[ command( after_help = AFTER_HELP ) ]
260
289
A {
261
290
#[ arg( required = true ) ]
291
+ #[ arg( value_hint = clap:: ValueHint :: AnyPath ) ]
262
292
#[ arg(
263
293
help = "Assign the source of your original files. It should be at least one file path"
264
294
) ]
265
295
input_paths : Vec < PathBuf > ,
266
296
#[ arg( short, long) ]
297
+ #[ arg( value_hint = clap:: ValueHint :: FilePath ) ]
267
298
#[ arg( help = "Assign a destination of your extracted files. It should be a file path. \
268
299
Specify the file extension name in order to determine which archive \
269
300
format you want to use. [default archive format: RAR]") ]
0 commit comments