mirror of
https://github.com/tonytins/s2pk.git
synced 2025-04-30 07:17:40 -04:00
Fixed a few oversights
This commit is contained in:
parent
de80add8bd
commit
dc76a426f0
3 changed files with 11 additions and 7 deletions
|
@ -3,12 +3,12 @@ using System.CommandLine;
|
|||
|
||||
var rootCommand = new RootCommand("The Sims 2 .s2pk Package Manager");
|
||||
|
||||
var sourceOption = new Option<DirectoryInfo>(
|
||||
var sourceOption = new Option<string>(
|
||||
aliases: ["--source", "-s"],
|
||||
description: "Source directory containing .package files")
|
||||
{ IsRequired = true };
|
||||
|
||||
var outputOption = new Option<FileInfo>(
|
||||
var outputOption = new Option<string>(
|
||||
aliases: ["--output", "-o"],
|
||||
description: "Destination .s2pk archive file")
|
||||
{ IsRequired = true };
|
||||
|
@ -25,12 +25,12 @@ packCommand.SetHandler((source, output) =>
|
|||
PackageManager.PackPackages(source, output);
|
||||
}, sourceOption, outputOption);
|
||||
|
||||
var packageOption = new Option<FileInfo>(
|
||||
var packageOption = new Option<string>(
|
||||
aliases: ["--package", "-p"],
|
||||
description: "Input .s2pk archive")
|
||||
{ IsRequired = true };
|
||||
|
||||
var destinationOption = new Option<DirectoryInfo>(
|
||||
var destinationOption = new Option<string>(
|
||||
aliases: ["--destination", "-d"],
|
||||
description: "Destination directory (e.g., The Sims 2 Downloads folder)")
|
||||
{ IsRequired = true };
|
||||
|
|
|
@ -24,11 +24,11 @@ S2PK was created to address the need for a reliable and efficient cross-platform
|
|||
## Example
|
||||
|
||||
```shell
|
||||
s2pkg pack -s ./mods -o output.s2pk
|
||||
s2pk pack -s ./mods -o output.s2pk
|
||||
```
|
||||
|
||||
```
|
||||
s2pkg unpack -p ./output.s2pk -d "%USERPROFILE%\Documents\EA Games\The Sims 2\Downloads"
|
||||
```shell
|
||||
s2pk unpack -p ./output.s2pk -d "%USERPROFILE%\Documents\EA Games\The Sims 2\Downloads"
|
||||
```
|
||||
|
||||
## 🗓️ Update Cycle
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
<Version>0.1.101</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Authors>Tony Bark</Authors>
|
||||
<PackAsTool>true</PackAsTool>
|
||||
<ToolCommandName>s2pk</ToolCommandName>
|
||||
<PackageId>s2pk</PackageId>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Add table
Reference in a new issue