-
Notifications
You must be signed in to change notification settings - Fork 1
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
Specify root path (--working-dir) by CLI argument #182
Comments
Does adding an argument make sense when there is a current working directory? I posted a question on Software Engineering, and the only answer there says it does: mainly because Onigumo can’t assume what environment it runs in. That opens a new question, whether to use the current working directory as a default. I incline towards yes because specifying . is just bothersome. Such behavior is, however, potentially dangerous because a typical run fastly creates many files. On the other hand, standard utilities like tar or wget do so too. I propose to default to @nappex, does this approach and its steps make sense to you? Any thoughts? |
@Glutexo yes, absolutely. I agree with that opinion. Only one thought, I d like keep the option to change this default behaviour by another destination if the taste of user will be diff... |
We hit the problem with test when we need to change the current working directory to check, content of working directory. We use |
Final implementation should looks like that:
|
It recommended to start with issue above. Currently we're handling CLI options by simple or basic approach. If we want to add another option to CLI which we want to handle, it's really good time to consider to handle CLI options by more advanced way. |
Consider the name |
Just found that Meson (a build system) uses
If you find any other examples, drop them here, please. |
Nice catch cowboy! 🤠 I am little bit confused by sentence |
Tar has:
|
No description provided.
The text was updated successfully, but these errors were encountered: