Disable -r for --replace
This commit is contained in:
parent
46e2e4a704
commit
eeb7e99c16
@ -210,7 +210,7 @@ POWER TOYS:
|
||||
-1 shows the bookmark with highest index
|
||||
-f, --format N limit fields in -p or Json search output
|
||||
N=1: URL, N=2: URL and tag, N=3: title
|
||||
-r, --replace oldtag [newtag ...]
|
||||
--replace oldtag [newtag ...]
|
||||
replace oldtag with newtag everywhere
|
||||
delete oldtag, if newtag not specified
|
||||
-j, --json Json formatted output for -p and search
|
||||
@ -462,10 +462,10 @@ The same number of iterations must be specified for one lock & unlock instance.
|
||||
$ buku -p | more
|
||||
25. **Replace tag** 'old tag' with 'new tag':
|
||||
|
||||
$ buku -r 'old tag' new tag
|
||||
$ buku --replace 'old tag' new tag
|
||||
26. **Delete tag** 'old tag' from DB:
|
||||
|
||||
$ buku -r 'old tag'
|
||||
$ buku --replace 'old tag'
|
||||
27. **Append (or delete) tags** 'tag 1', 'tag 2' to (or from) existing tags of bookmark at index 15012014:
|
||||
|
||||
$ buku -u 15012014 --tag + tag 1, tag 2
|
||||
|
@ -30,7 +30,7 @@ _buku () {
|
||||
-o --open
|
||||
--oa
|
||||
-p --print
|
||||
-r --replace
|
||||
--replace
|
||||
-s --sany
|
||||
-S --sall
|
||||
--shorten
|
||||
@ -55,7 +55,7 @@ _buku () {
|
||||
-i --import
|
||||
--immutable
|
||||
-m --merge
|
||||
-r --replace
|
||||
--replace
|
||||
-s --sany
|
||||
-S --sall
|
||||
--shorten
|
||||
|
@ -23,7 +23,7 @@ complete -c buku -l np --description 'non-interactive mode'
|
||||
complete -c buku -s o -l open --description 'open bookmarks in browser'
|
||||
complete -c buku -l oa --description 'browse all search results immediately'
|
||||
complete -c buku -s p -l print --description 'show bookmark details'
|
||||
complete -c buku -s r -l replace -r --description 'replace a tag'
|
||||
complete -c buku -l replace -r --description 'replace a tag'
|
||||
complete -c buku -s s -l sany -r --description 'match any keyword'
|
||||
complete -c buku -s S -l sall -r --description 'match all keywords'
|
||||
complete -c buku -l shorten -r --description 'shorten a URL using tny.im'
|
||||
|
@ -28,7 +28,7 @@ args=(
|
||||
'(-o --open)'{-o,--open}'[open bookmarks in browser]'
|
||||
'(--oa)--oa[browse all search results immediately]'
|
||||
'(-p --print)'{-p,--print}'[show bookmark details]'
|
||||
'(-r --replace)'{-r,--replace}'[replace a tag]:tag to replace'
|
||||
'(--replace)--replace[replace a tag]:tag to replace'
|
||||
'(-s --sany)'{-s,--sany}'[match any keyword]:keyword(s)'
|
||||
'(-s --sall)'{-s,--sall}'[match all keywords]:keyword(s)'
|
||||
'(--shorten)--shorten[shorten a URL using tny.im]:index/url'
|
||||
|
6
buku.1
6
buku.1
@ -188,7 +188,7 @@ Show selective monochrome output with specific fields. Works with --print. Searc
|
||||
.I N
|
||||
= 3, show only title.
|
||||
.TP
|
||||
.BI \-r " " \--replace " oldtag [newtag ...]"
|
||||
.BI \--replace " oldtag [newtag ...]"
|
||||
Replace
|
||||
.I oldtag
|
||||
with
|
||||
@ -535,7 +535,7 @@ The same number of iterations must be specified for one lock & unlock instance.
|
||||
.PP
|
||||
.EX
|
||||
.IP
|
||||
.B buku -r 'old tag' new tag
|
||||
.B buku --replace 'old tag' new tag
|
||||
.EE
|
||||
.PP
|
||||
.IP 26. 4
|
||||
@ -543,7 +543,7 @@ The same number of iterations must be specified for one lock & unlock instance.
|
||||
.PP
|
||||
.EX
|
||||
.IP
|
||||
.B buku -r 'old tag'
|
||||
.B buku --replace 'old tag'
|
||||
.EE
|
||||
.PP
|
||||
.IP 27. 4
|
||||
|
4
buku.py
4
buku.py
@ -2636,7 +2636,7 @@ POSITIONAL ARGUMENTS:
|
||||
-1 shows the bookmark with highest index
|
||||
-f, --format N limit fields in -p or Json search output
|
||||
N=1: URL, N=2: URL and tag, N=3: title
|
||||
-r, --replace oldtag [newtag ...]
|
||||
--replace oldtag [newtag ...]
|
||||
replace oldtag with newtag everywhere
|
||||
delete oldtag, if newtag not specified
|
||||
-j, --json Json formatted output for -p and search
|
||||
@ -2658,7 +2658,7 @@ POSITIONAL ARGUMENTS:
|
||||
addarg('-m', '--merge', nargs=1, help=HIDE)
|
||||
addarg('-p', '--print', nargs='*', help=HIDE)
|
||||
addarg('-f', '--format', type=int, default=0, choices={1, 2, 3}, help=HIDE)
|
||||
addarg('-r', '--replace', nargs='+', help=HIDE)
|
||||
addarg('--replace', nargs='+', help=HIDE)
|
||||
addarg('-j', '--json', action='store_true', help=HIDE)
|
||||
addarg('--nc', action='store_true', help=HIDE)
|
||||
addarg('--np', action='store_true', help=HIDE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user