Adds perge-tags option

This commit is contained in:
Jonathan Hodgson 2020-12-30 17:42:22 +00:00
parent 6206986546
commit a504c212ef
2 changed files with 9 additions and 0 deletions

2
kb
View file

@ -314,6 +314,7 @@ mainScript() {
list-tags) listTags "${args[@]:1}"; safeExit ;;
makedb) makedb; safeExit ;;
new) newFile "${args[@]:1}"; safeExit ;;
purge-tags) purgeTags "${args[@]:1}"; safeExit ;;
update) updateFileChange "${args[@]:1}"; safeExit ;;
view) viewFile "${args[@]:1}"; safeExit ;;
@ -358,6 +359,7 @@ usage() {
--normal List items of type \"normal\"
list-tags Lists tags with the number of times its used
--noheader Don't include the header
purge-tags Deletes any unused tags
update <file> [<file>] Updates the database and git repo of a changed file
If 2 files are given, it assumes a move
view View a file