File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ def get_argparse():
15
15
action = 'store_const' , const = True , default = False ,
16
16
help = "include field <%s> in output" % field )
17
17
18
+ parser .add_argument ('--show-all' ,
19
+ action = 'store_const' , const = True , default = False ,
20
+ help = "include all fields in output" )
21
+
18
22
parser .add_argument ('--publish' , help = "use template to publish zfind output (suppresses all --show-FIELD)" , default = None )
19
23
20
24
parser .add_argument ('--publish-conf' , help = "use publish configuration file to format special fields" , default = None )
@@ -117,7 +121,7 @@ def main():
117
121
this_result_output = []
118
122
for field in row .keys ():
119
123
show_field = 'show_' + field
120
- if argsd .get (show_field , None ):
124
+ if argsd .get (show_field , None ) or argsd . get ( 'show_all' ) :
121
125
if field == 'filename' :
122
126
filename_yaml = yaml .dump ({ 'filename' : row ['filename' ]})
123
127
this_result_output .append (filename_yaml .rstrip ())
You can’t perform that action at this time.
0 commit comments