Closed jacobperron closed 4 years ago
Alternatively, we could re-use the name find-pkg
to refer to the share directory, which I think is the more common case. See https://github.com/ros2/launch_ros/pull/57#issuecomment-525920400
Thoughts?
we could re-use the name
find-pkg
to refer to the share directory, which I think is the more common case.
Common or not my argument is that it is opaque to the user what it maps to. The user must read docs to understand its behavior which I think is not good naming.
I think they'll have to read the documentation (or infer its behavior from an example) anyways. I always prefer more explicit names, so I'm ok with find-pkg-share
, but I know other people don't want to type that all the time and for the vast majority of the time when they say "find-pkg" they mean the share directory. So I'd also be ok with find-pkg
as an alias to find-pkg-share
.
I prefer the explicit names find_pkg_prefix
and find_pkg_share
, as it is now.
Thanks for the feedback everyone! I'll proceed with explicit names (find-pkg-prefix
and find-pkg-share
) and we can always add the alias find-pkg
in the future, if the community wants it.
Rename find-pkg to find-pkg-prefix. Add find-pkg-share substitution for the share directory.
Implementation is in https://github.com/ros2/launch_ros/pull/57