Skip to content

root-config --has-feature should complain if feature is not a ROOT feature #7662

@eguiraud

Description

@eguiraud
  • Checked for duplicates

Describe the bug

root-config --has-XXX simply prints "no" and returns 0 if XXX is not a ROOT feature. This is an unnecessary source of confusion (see e.g. this forum thread), especially when features change name, as it happened with --has-python which is now spelled --has-pyroot, or in case of spelling mistakes root-config --has-builtin-cling prints "no" but root-config --has-builtin_cling prints "yes".

Expected behavior

root-config --has-bugs should print something like "unknown feature: 'bugs'" and root-config should return non-zero.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions