File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ def parse_args():
2828 parser .add_argument ('-hdf5' , \
2929 help = 'output HDF5 files' , \
3030 action = "store_true" )
31- parser .add_argument ('-rm ' , \
32- help = 'removes processed files' , \
31+ parser .add_argument ('-keep ' , \
32+ help = 'Do not remove processed files' , \
3333 action = "store_true" )
3434 parser .add_argument ('-alt' , default = - 1 , type = int , \
3535 help = 'altitude to plot (-1 for no plot!)' )
@@ -1205,8 +1205,8 @@ def main(args):
12051205 #write_and_plot_data(stdData, fileInfo['ensembleFile'],
12061206 # '_std', iVar, iAlt, output_netcdf)
12071207
1208- if (args .rm ):
1209- print (' --> Removing files ...' )
1208+ if not (args .keep ):
1209+ print (' --> Removing files ...' , filelist )
12101210 for file in filelist :
12111211 command = 'rm -f ' + file
12121212 if (isVerbose ):
You can’t perform that action at this time.
0 commit comments