Skip to content

Commit 72c022a

Browse files
committed
Introduce --ctags option to specify ctags executable in ctags subcommand
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
1 parent 41039f7 commit 72c022a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ We assume you may have enough storage space on your PC.
4848
$ [CTAGS_EXE=${where your ctags executable is}] ./codebase ctags <LANGUAGE> [<PROFILE>]
4949

5050
codebase refers *CTAGS_EXE* environment variable to run ctags.
51+
`--ctags ${where your ctags executable is}` is an alternative way to
52+
specify the ctags executable you want to test.
5153

5254
You can run ctags with different option combination.
5355
We call such option combination *PROFILE*.

codebase

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,16 @@ cmd_list_profiles_run()
354354
cmd_ctags_help_simple()
355355
{
356356
cat <<EOF
357-
$0 ctags [-v] [-o TAGOUTPUT|-O] [--valgrind|--perf|--gdb] [LANGUAGE|all] [PROFILE]
357+
$0 ctags [-v] [--ctags CTAGS_EXE] [-o TAGOUTPUT|-O] [--valgrind|--perf|--gdb] [LANGUAGE|all] [PROFILE]
358358
EOF
359359
}
360360

361361
cmd_ctags_help()
362362
{
363363
cat <<EOF
364+
--ctags
365+
Specify ctags executable.
366+
364367
-v|--verbose
365368
Makes the output of $0 verbose (not for ctags itself).
366369
@@ -399,6 +402,15 @@ cmd_ctags_run()
399402

400403
while [[ $# -gt 0 ]]; do
401404
case "$1" in
405+
(--ctags)
406+
shift 1
407+
CTAGS_EXE=$1
408+
shift 1
409+
;;
410+
(--ctags=*)
411+
CTAGS_EXE=${1/--ctags=/}
412+
shift 1
413+
;;
402414
(--verbose|-v)
403415
verbose=1
404416
shift 1

0 commit comments

Comments
 (0)