hyde icon indicating copy to clipboard operation
hyde copied to clipboard

Command Line Options - relative paths inconsistent

Open sean-parent opened this issue 6 years ago • 2 comments
trafficstars

Describe the bug The path for -hyde-yaml-dir and -hyde-src-root is relative to the directory containing the file being processed. i.e.

hyde ./include/psutil/safe_cast.hpp -hyde-src-root=../../include -hyde-yaml-dir=../../docs/include

Here the path ../../include is relative to ./include/psutil/ and not the current working directory.

sean-parent avatar Aug 06 '19 23:08 sean-parent

Am I understanding correctly that you'd like the relative paths to be from the current working directory? That means you must navigate to a specific path before running the tool in order for it to function. I based the relative paths off the source file being processed because then the tool can be run regardless of the current working directory, which seemed the more flexible option.

fosterbrereton avatar Aug 07 '19 15:08 fosterbrereton

Let's say I have: include/library/file.hpp include/library/sub/other.hpp

I would have to have two separate roots for each of those. That is a bit of a pain. Normally a path specified on the command line is relative to the current working directory, and a path in a file (like a config file, header file, html file, etc.) is relative to that file. Having the path be relative to some other file is weird and confusing.

sean-parent avatar Aug 07 '19 20:08 sean-parent