Command Line Options - relative paths inconsistent · Issue #37 · adobe/hyde · GitHub
Skip to content

Command Line Options - relative paths inconsistent #37

Open

Description

@sean-parent

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.

Activity

  1. fosterbrereton commented on Aug 7, 2019

    @fosterbrereton
    Contributor

    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.

  2. sean-parent commented on Aug 7, 2019

    @sean-parent
    ContributorAuthor

    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.

  3. added 2 commits that reference this issue on Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions