Closed nickhuangxinyu closed 3 years ago
libconfig::Setting has methods getSourceFile() and getSourceLine() that give you this information. So call getSourceFile() on the root setting to get the toplevel filename. There can be multiple files if include statements are used, so each setting potentially has a unique filename/line.
Closing as working as intended.
i know the normal usage is:
my question is:
Can i get the path from cfg object?
like: cfg.getpath() to get filepath?