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