-
Notifications
You must be signed in to change notification settings - Fork 37
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
Please add dedicated output directory argument #243
Comments
For example, if Thus, such complex behavior is inappropriate for this argument, at least seems to me |
Also, -o for directories broken since 2017 (#136). Maybe it will be easier to remove -o functionality for dirs at all? |
I'm not sure I follow. Can you please specify an example of how you invoke DStep (ideally without involving other commands like |
I want to run dstep over one It is need to run dstep over huge number of files. Currently I run something like: find "$SRCDIR/src/libxxx/include/" -maxdepth 1 -xtype f -name '*.h' \
-exec ${DSTEP} '{}' \; \
-exec sh -c 'mv $(dirname "$0")/*.d ${LIBXXX}/source/libxxx/' {} \; It is because I don't know resulting |
I'm not sure if I want to add this feature. No other similar tools (like compilers) that I'm aware of provide this. It's also possible to pass multiple files to DStep at once. Then the |
In turn, I can say that I do not know any tool in which the result type (directory or file) depends on the number of source arguments.
Strictly speaking, no. There is a system limitation of size of CLI arguments. And as soon as the xarg because of this will divide the list of files into several parts (it is smart and can split arguments into chunks to start command many times), there is a risk that in the last chunk there will be only one file and an error will occur (and I already faced with it) |
Hmm, I see. I might be able to add it. |
And maybe it is reasonable to remove (temporary, maybe) -o support for dirs because currently it is broken 2 years at least. I spent time to bughunting inside of my own script because this... |
It's working for simple cases. |
I had a similar problem with -o. At first it seems that dstep ignored my -o param. For example:
This tries to write .d files inside the "source" directory rather than on
This works for me. |
Something like
-O
Current smart universal
-o
is not very comfortable, especially for usage with execution fromfind
, with results what wanted to be placed into one specified output directory - dstep complains that the directory is specified, but dstep wants file name in this case.The text was updated successfully, but these errors were encountered: