New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow more controls in gmt clear #7740
Conversation
This PR follows a suggestion in #7738 to allow teh removal of just one data set, say earth_relief without deleting all the other Earth data. In addition I added option -N which simply lists (to stdout) which directories would have been deleted.
I got an error with -N
|
Check that argument to data was not given and check for -N in a separate loop before doing the work.
Yikes. OK, that is fixed now but then there was another but so now my entire data dor os gone. Fixed that too but probably smart if you try this on a .server dir while renaming your original one .server_save and then just copy a few datasets to the temporary dir to see if it works. I am running gmt get data right now... |
Now works. But I don't understand the error message (last one). gmt clear data -N |
I'll see if I can reproduce once gmt get stops... |
Strange since printing out the server directory is the last thing clear does so not sure what that means. |
OK, forgo to skip -N -V in the second loop (since I added a separate loop to detect -N). |
Now it is fine. |
This PR follows a suggestion in #7738 to allow the removal of just one data set, say
earth_relief
without deleting all the other Earth data. In addition I added option -N which simply lists (to stdout) which directories would have been deleted.