Skip to content

Conversation

dgsuarez
Copy link
Contributor

Exhuberant Ctags has --recurse instead of --recursive, this just introduces --recurse=[yes|no] to the CLI to make the interface compatible (will avoid hacks with generic tags plugins in editors, in my case the well known https://github.com/ludovicchabant/vim-gutentags):

$ ctags --help | grep recur
  -R   Equivalent to --recurse.
  --recurse=[yes|no]
$ bundle exec bin/ripper-tags --help | grep recur
    -R, --recursive                  Descend recursively into subdirectories
        --recurse=[yes|no]           Alias for --recursive
        --all-files                  Parse all files in recursive mode (default: parse `*.rb' files)

Behaviour is the same as --recursive:

$ bundle exec bin/ripper-tags --recurse --verbose
Parsing file `test/test_ripper_tags.rb'
Parsing file `test/fixtures/_git/hooks/hook.rb'
Parsing file `test/fixtures/erb_template.rb'
...

Small difference is that it supports the --recurse=yes|no style like Ctags:

$ bundle exec bin/ripper-tags --recurse=no --verbose
ripper-tags: invalid option: needs either a list of files, `-L`, or `-R' flag

Copy link
Collaborator

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you

@mislav mislav merged commit a393291 into tmm1:master Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants