@@ -1184,80 +1184,63 @@ def generate_parser():
11841184 description = "Converts between different timestamp7 formats"
11851185 )
11861186
1187+ # fmt: off
11871188 parser .add_argument (
1188- "-q" , "--quiet" , action = "store_true" , help = "Suppress progress indicators"
1189- )
1189+ "-q" , "--quiet" , action = "store_true" ,
1190+ help = "Suppress progress indicators" )
11901191 # Support for older read-write mechanisms, i.e. disable batch streaming
11911192 parser .add_argument (
1192- "--inmemory" ,
1193- action = "store_true" ,
1194- help = "Disable batch streaming (retained for legacy reasons)" ,
1195- )
1193+ "--inmemory" , action = "store_true" ,
1194+ help = "Disable batch streaming (retained for legacy reasons)" )
11961195 parser .add_argument (
1197- "--rollover" ,
1198- action = "store_true" ,
1199- help = "Include rollover dummy events (generally unwanted)" ,
1200- )
1196+ "--rollover" , action = "store_true" ,
1197+ help = "Include rollover dummy events (generally unwanted)" )
12011198
12021199 pgroup = parser .add_argument_group ("Timestamp formats" )
12031200 pgroup .add_argument (
1204- "-A" ,
1205- choices = ["0" , "1" , "2" ],
1206- default = "1" ,
1207- help = "Input timestamp format (default: 1)" ,
1208- )
1201+ "-A" , choices = ["0" , "1" , "2" ], default = "1" ,
1202+ help = "Input timestamp format (default: 1)" )
12091203 pgroup .add_argument (
1210- "-X" , action = "store_true" , help = "Use legacy input format (default: False)"
1211- )
1204+ "-X" , action = "store_true" ,
1205+ help = "Use legacy input format (default: False)" )
12121206 pgroup .add_argument (
1213- "-a" ,
1214- choices = ["0" , "1" , "2" ],
1215- default = "1" ,
1216- help = "Output timestamp format (default: 1)" ,
1217- )
1207+ "-a" , choices = ["0" , "1" , "2" ], default = "1" ,
1208+ help = "Output timestamp format (default: 1)" )
12181209 pgroup .add_argument (
1219- "-x" , action = "store_true" , help = "Use legacy output format (default: False)"
1220- )
1210+ "-x" , action = "store_true" ,
1211+ help = "Use legacy output format (default: False)" )
12211212
12221213 # Filtering
12231214 pgroup = parser .add_argument_group ("Pattern filtering" )
12241215 pgroup .add_argument (
1225- "--pattern" ,
1226- type = int ,
1227- metavar = "" ,
1228- help = "Specify pattern for filtering (e.g. 5 for ch1+ch3)" ,
1229- )
1216+ "--pattern" , type = int , metavar = "" ,
1217+ help = "Specify pattern for filtering (e.g. 5 for ch1+ch3)" )
12301218 pgroup .add_argument (
1231- "--mask" ,
1232- action = "store_true" ,
1233- help = "Use pattern as mask instead of fixed (default: False)" ,
1234- )
1219+ "--mask" , action = "store_true" ,
1220+ help = "Use pattern as mask instead of fixed (default: False)" )
12351221 pgroup .add_argument (
1236- "--invert" ,
1237- action = "store_true" ,
1238- help = "Exclude pattern instead of include (default: False)" ,
1239- )
1222+ "--invert" , action = "store_true" ,
1223+ help = "Exclude pattern instead of include (default: False)" )
12401224
12411225 pgroup = parser .add_argument_group ("Timestamp filtering" )
12421226 pgroup .add_argument (
1243- "--start" , type = float , metavar = "" , help = "Specify start timestamp, in seconds"
1244- )
1227+ "--start" , type = float , metavar = "" ,
1228+ help = "Specify start timestamp, in seconds" )
12451229 pgroup .add_argument (
1246- "--end" , type = float , metavar = "" , help = "Specify end timestamp, in seconds"
1247- )
1230+ "--end" , type = float , metavar = "" ,
1231+ help = "Specify end timestamp, in seconds" )
12481232 pgroup .add_argument (
1249- "--relative-time" ,
1250- action = "store_true" ,
1251- help = "Use relative time to start timestamp instead." ,
1252- )
1233+ "--relative-time" , action = "store_true" ,
1234+ help = "Use relative time to start timestamp instead." )
12531235
1254- parser .add_argument ("infile" , help = "Input timestamp file" )
12551236 parser .add_argument (
1256- "outfile" ,
1257- nargs = "?" ,
1258- const = "" ,
1259- help = "Output timestamp file (optional: not required for printing)" ,
1260- )
1237+ "infile" ,
1238+ help = "Input timestamp file" )
1239+ parser .add_argument (
1240+ "outfile" , nargs = "?" , const = "" ,
1241+ help = "Output timestamp file (optional: not required for printing)" )
1242+ # fmt: on
1243+
12611244 return parser
12621245
12631246
0 commit comments