@@ -2,14 +2,33 @@ use clap::{Parser, Subcommand, ValueEnum};
22
33#[ derive( Debug , Parser ) ]
44#[ command( name = "pq" , version, about = "The jq of Parquet" ) ]
5- #[ command( args_conflicts_with_subcommands = true ) ]
65pub struct Cli {
76 #[ command( flatten) ]
87 pub global : GlobalArgs ,
98
109 #[ command( subcommand) ]
1110 pub command : Option < Command > ,
1211
12+ /// Show all columns (no truncation)
13+ #[ arg( long) ]
14+ pub all : bool ,
15+
16+ /// Only print schema, skip file metadata
17+ #[ arg( long) ]
18+ pub schema_only : bool ,
19+
20+ /// Only print file metadata, skip schema
21+ #[ arg( long) ]
22+ pub meta_only : bool ,
23+
24+ /// Show raw Parquet metadata (thrift-level detail)
25+ #[ arg( long) ]
26+ pub raw : bool ,
27+
28+ /// Sort columns by: name, type, encoding, size, nulls
29+ #[ arg( short, long) ]
30+ pub sort : Option < String > ,
31+
1332 /// Files to inspect (when no subcommand is given)
1433 #[ arg( trailing_var_arg = true ) ]
1534 pub files : Vec < String > ,
@@ -412,22 +431,6 @@ pub struct ConvertArgs {
412431 #[ arg( long) ]
413432 pub schema : Option < String > ,
414433
415- /// strftime format for timestamp parsing
416- #[ arg( long) ]
417- pub timestamp_format : Option < String > ,
418-
419- /// Treat comma as decimal separator
420- #[ arg( long) ]
421- pub decimal_comma : bool ,
422-
423- /// Comma-separated null representations
424- #[ arg( long) ]
425- pub null_values : Option < String > ,
426-
427- /// CSV has header row
428- #[ arg( long) ]
429- pub header : Option < bool > ,
430-
431434 /// CSV lacks header row
432435 #[ arg( long) ]
433436 pub no_header : bool ,
@@ -436,9 +439,9 @@ pub struct ConvertArgs {
436439 #[ arg( long) ]
437440 pub delimiter : Option < char > ,
438441
439- /// Columns with <= N unique values get dictionary encoding (default: 10000)
442+ /// Enable dictionary encoding
440443 #[ arg( long) ]
441- pub dictionary_threshold : Option < usize > ,
444+ pub dictionary : bool ,
442445}
443446
444447#[ derive( Debug , clap:: Args ) ]
@@ -559,10 +562,6 @@ pub struct SizeArgs {
559562 #[ arg( long) ]
560563 pub top : Option < usize > ,
561564
562- /// Human-readable sizes (default)
563- #[ arg( long) ]
564- pub human : bool ,
565-
566565 /// Show exact byte counts
567566 #[ arg( long) ]
568567 pub bytes : bool ,
0 commit comments