diff --git a/README.md b/README.md index 22727ce5..5ad4d0c6 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,12 @@ hactoolnet is an example program that uses LibHac. It is used in a similar manne ## Usage ``` -Usage: hactoolnet [options...] +Usage: hactoolnet.exe [options...] Options: -r, --raw Keep raw data, don't unpack. -y, --verify Verify hashes. -k, --keyset Load keys from an external file. - -t, --intype=type Specify input file type [nca, switchfs] + -t, --intype=type Specify input file type [nca, xci, switchfs, save, keygen] --titlekeys Load title keys from an external file. NCA options: --section0 Specify Section 0 file path. @@ -28,15 +28,37 @@ NCA options: --section1dir Specify Section 1 directory path. --section2dir Specify Section 2 directory path. --section3dir Specify Section 3 directory path. + --exefs Specify ExeFS directory path. + --exefsdir Specify ExeFS directory path. + --romfs Specify RomFS directory path. + --romfsdir Specify RomFS directory path. --listromfs List files in RomFS. --basenca Set Base NCA to use with update partitions. +XCI options: + --rootdir Specify root XCI directory path. + --updatedir Specify update XCI directory path. + --normaldir Specify normal XCI directory path. + --securedir Specify secure XCI directory path. + --logodir Specify logo XCI directory path. + --outdir Specify XCI directory path. + --exefs Specify main ExeFS file path. + --exefsdir Specify main ExeFS directory path. + --romfs Specify main RomFS file path. + --romfsdir Specify main RomFS directory path. + --nspout Specify file for the created NSP. Switch FS options: --sdseed Set console unique seed for SD card NAX0 encryption. --listapps List application info. --listtitles List title info for all titles. --title Specify title ID to use. - --outdir <dir> Specify directory path to save title to. - --romfsdir <dir> Specify RomFS directory path. + --outdir <dir> Specify directory path to save title NCAs to. (--title must be specified) + --exefs <file> Specify ExeFS directory path. (--title must be specified) + --exefsdir <dir> Specify ExeFS directory path. (--title must be specified) + --romfs <file> Specify RomFS directory path. (--title must be specified) + --romfsdir <dir> Specify RomFS directory path. (--title must be specified) +Savefile options: + --outdir <dir> Specify directory path to save contents to. + --debugoutdir <dir> Specify directory path to save intermediate data to for debugging. ``` ## Examples @@ -55,6 +77,8 @@ Specifying the patch title ID will extract the patched title. ## External Keys +For more detailed information on keyset files, see [KEYS.md](KEYS.md). + Keys can be loaded from a text file by specifying a filename with the `-k` argument. The file should be in the same format read by [hactool](https://github.com/SciresM/hactool#external-keys): "Keyset files are text files containing one key per line, in the form "key_name = HEXADECIMALKEY". Case shouldn't matter, nor should whitespace." diff --git a/hactoolnet/CliParser.cs b/hactoolnet/CliParser.cs index e9bce688..75b327b8 100644 --- a/hactoolnet/CliParser.cs +++ b/hactoolnet/CliParser.cs @@ -173,6 +173,7 @@ namespace hactoolnet sb.AppendLine(" --exefsdir <dir> Specify main ExeFS directory path."); sb.AppendLine(" --romfs <file> Specify main RomFS file path."); sb.AppendLine(" --romfsdir <dir> Specify main RomFS directory path."); + sb.AppendLine(" --nspout <file> Specify file for the created NSP."); sb.AppendLine("Switch FS options:"); sb.AppendLine(" --sdseed <seed> Set console unique seed for SD card NAX0 encryption."); sb.AppendLine(" --listapps List application info.");