Skip to content

I fixed file extraction by adding a --file command line parameter. - #123

Closed
Clearmist wants to merge 1 commit into
jakcron:development-tipfrom
Clearmist:fix-file-extraction
Closed

I fixed file extraction by adding a --file command line parameter.#123
Clearmist wants to merge 1 commit into
jakcron:development-tipfrom
Clearmist:fix-file-extraction

Conversation

@Clearmist

@Clearmist Clearmist commented Nov 16, 2025

Copy link
Copy Markdown

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 --extract parameter, then gives the output directory, then the --file parameter, 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.

@Clearmist Clearmist closed this Jun 13, 2026
@Clearmist
Clearmist deleted the fix-file-extraction branch June 13, 2026 15:38
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

Successfully merging this pull request may close these issues.

1 participant