@@ -221,18 +221,6 @@ fn main() {
221
221
. author ( crate_authors ! ( ) )
222
222
. version ( crate_version ! ( ) )
223
223
. arg_required_else_help ( true )
224
- . arg (
225
- Arg :: new ( "file" )
226
- . short ( 'f' )
227
- . long ( "file" )
228
- . value_name ( "FILE" )
229
- . help ( "Target file" )
230
- . takes_value ( true )
231
- . conflicts_with ( "directory" )
232
- . conflicts_with ( "pid" )
233
- . conflicts_with ( "process" )
234
- . conflicts_with ( "process-all" ) ,
235
- )
236
224
. arg (
237
225
Arg :: new ( "directory" )
238
226
. short ( 'd' )
@@ -245,6 +233,18 @@ fn main() {
245
233
. conflicts_with ( "process" )
246
234
. conflicts_with ( "process-all" ) ,
247
235
)
236
+ . arg (
237
+ Arg :: new ( "file" )
238
+ . short ( 'f' )
239
+ . long ( "file" )
240
+ . value_name ( "FILE" )
241
+ . help ( "Target file" )
242
+ . takes_value ( true )
243
+ . conflicts_with ( "directory" )
244
+ . conflicts_with ( "pid" )
245
+ . conflicts_with ( "process" )
246
+ . conflicts_with ( "process-all" ) ,
247
+ )
248
248
. arg (
249
249
Arg :: new ( "json" )
250
250
. short ( 'j' )
@@ -255,7 +255,7 @@ fn main() {
255
255
Arg :: new ( "maps" )
256
256
. short ( 'm' )
257
257
. long ( "maps" )
258
- . help ( "Include process memory maps (linux only)" )
258
+ . help ( "Include process memory maps (Linux only)" )
259
259
. requires ( "process" )
260
260
. requires ( "process-all" ) ,
261
261
)
@@ -264,6 +264,20 @@ fn main() {
264
264
. long ( "no-color" )
265
265
. help ( "Disables color output" ) ,
266
266
)
267
+ . arg (
268
+ Arg :: new ( "pid" )
269
+ . long ( "pid" )
270
+ . value_name ( "PID" )
271
+ . help (
272
+ "Process ID of running process to check\n \
273
+ (comma separated for multiple PIDs)",
274
+ )
275
+ . takes_value ( true )
276
+ . conflicts_with ( "directory" )
277
+ . conflicts_with ( "file" )
278
+ . conflicts_with ( "process" )
279
+ . conflicts_with ( "process-all" ) ,
280
+ )
267
281
. arg (
268
282
Arg :: new ( "pretty" )
269
283
. long ( "pretty" )
@@ -282,20 +296,6 @@ fn main() {
282
296
. conflicts_with ( "pid" )
283
297
. conflicts_with ( "process-all" ) ,
284
298
)
285
- . arg (
286
- Arg :: new ( "pid" )
287
- . long ( "pid" )
288
- . value_name ( "PID" )
289
- . help (
290
- "Process ID of running process to check\n \
291
- (comma separated for multiple PIDs)",
292
- )
293
- . takes_value ( true )
294
- . conflicts_with ( "directory" )
295
- . conflicts_with ( "file" )
296
- . conflicts_with ( "process" )
297
- . conflicts_with ( "process-all" ) ,
298
- )
299
299
. arg (
300
300
Arg :: new ( "process-all" )
301
301
. short ( 'P' )
0 commit comments