I fixed file extraction by adding a --file command line parameter. - #123
Closed
Clearmist wants to merge 1 commit into
Closed
I fixed file extraction by adding a --file command line parameter.#123Clearmist wants to merge 1 commit into
--file command line parameter.#123Clearmist wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
File extraction is currently confusing and extracting a single file does not work so I added a new command line parameter to specify which file is to be extracted instead of relying on a sequence of strings and guessing.
Check out the changes to the readme file to see how it works. Basically, the user uses the
--extractparameter, then gives the output directory, then the--fileparameter, then the path to the archive like normal.Here is an example. Notice that there is a single period after --extract which signifies I want the file extracted to the directory I'm currently in. You could, of course, modify it to a sub directory such as
./out..\nstool.exe --extract . --file {filename}.cnmt.nca "D:\test.nsp"The other two modes (full file system extraction and sub directory extraction) still work as expected.
I also added a helpful single line command to the building Markdown file regarding building the project on Windows.