Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddlog -o option has weird behavior #1163

Open
blp opened this issue Aug 10, 2022 · 2 comments
Open

ddlog -o option has weird behavior #1163

blp opened this issue Aug 10, 2022 · 2 comments

Comments

@blp
Copy link
Contributor

blp commented Aug 10, 2022

ddlog --help says the following about -o:

  -o DIR   --output-dir=DIR                 Output directory (default based on program name).

To me, this means that the output directory is based on the program name by default. Sure enough, if I run ddlog -i foo.dl I end up with output in foo_ddlog. Cool.

So, if I run ddlog -i foo.dl -o bar, I'll get an output directory not based on the program name but named bar instead, right? No. Actually it's still based on the program name, just nested inside the bar directory:

[blp@sigxcpu]$ ddlog -i foo.dl -o bar
Finished compiling "foo.dl" in 0.76s
[blp@sigxcpu]$ ls bar/
foo_ddlog
[blp@sigxcpu]$ 

This doesn't do what I expect. I don't know whether the implementation is wrong (so that the code should be changed to do what I expect) or the usage message is wrong (so that the usage message should be changed to something like "output base directory (default is .)".

@mihaibudiu
Copy link

Yes, I would rephrase the message "directory where output is placed".

@ryzhyk
Copy link
Contributor

ryzhyk commented Aug 11, 2022

agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants