From b7207109bcaa6034d6970842050d7f0299cab09a Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 10 Feb 2017 19:25:05 +0530 Subject: [PATCH] Shorten --nocolor to --nc. --- README.md | 2 +- auto-completion/bash/buku-completion.bash | 2 +- buku.1 | 2 +- buku.py | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 97c2fc5..d29073c 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ POWER TOYS: replace oldtag with newtag everywhere delete oldtag, if no newtag -j, --json Json formatted output for -p and search - --nocolor disable color output + --nc disable color output --noprompt do not show the prompt, run and exit -o, --open [...] open bookmarks in browser by DB index accepts indices and ranges diff --git a/auto-completion/bash/buku-completion.bash b/auto-completion/bash/buku-completion.bash index facd6ca..862b9da 100644 --- a/auto-completion/bash/buku-completion.bash +++ b/auto-completion/bash/buku-completion.bash @@ -26,7 +26,7 @@ _buku () { -l --lock -m --merge --markdown - --nocolor + --nc --noprompt -o --open --oa diff --git a/buku.1 b/buku.1 index e761fb5..8f56944 100644 --- a/buku.1 +++ b/buku.1 @@ -196,7 +196,7 @@ is omitted. .BI \-j " " \--json Output data formatted as json, works with --print output and search results. .TP -.BI \--nocolor +.BI \--nc Disable color output in all messages. Useful on terminals which can't handle ANSI color codes or scripted environments. .TP .BI \--noprompt diff --git a/buku.py b/buku.py index 92589b0..0bf2572 100755 --- a/buku.py +++ b/buku.py @@ -2503,7 +2503,7 @@ POSITIONAL ARGUMENTS: replace oldtag with newtag everywhere delete oldtag, if no newtag -j, --json Json formatted output for -p and search - --nocolor disable color output + --nc disable color output --noprompt do not show the prompt, run and exit -o, --open [...] open bookmarks in browser by DB index accepts indices and ranges @@ -2526,7 +2526,7 @@ POSITIONAL ARGUMENTS: addarg('-f', '--format', type=int, default=0, choices={1, 2, 3}, help=HIDE) addarg('-r', '--replace', nargs='+', help=HIDE) addarg('-j', '--json', action='store_true', help=HIDE) - addarg('--nocolor', action='store_true', help=HIDE) + addarg('--nc', action='store_true', help=HIDE) addarg('--noprompt', action='store_true', help=HIDE) addarg('-o', '--open', nargs='*', help=HIDE) addarg('--oa', action='store_true', help=HIDE) @@ -2561,7 +2561,7 @@ POSITIONAL ARGUMENTS: urllib3.disable_warnings() # Handle color output preference - if args.nocolor: + if args.nc: colorize = False ID_str = '%d. %s [%s]\n' ID_DB_str = '%d. %s' @@ -2600,7 +2600,7 @@ POSITIONAL ARGUMENTS: # Initialize the database and get handles, set verbose by default bdb = BukuDb(args.json, args.format, not args.tacit, - colorize=not args.nocolor) + colorize=not args.nc) # Editor mode if args.write is not None: