tools/eupak: Refactor out Arguments
from public view
They aren't needed for public view anymore.
This commit is contained in:
parent
e30913b018
commit
addf2071f4
2 changed files with 14 additions and 17 deletions
|
@ -18,18 +18,6 @@
|
|||
namespace eupak::tasks {
|
||||
|
||||
struct CreateTask : ITask {
|
||||
/// Arguments.
|
||||
/// This is no longer directly used by clients
|
||||
/// and should later be factored out of surface.
|
||||
struct Arguments {
|
||||
fs::path inputDirectory;
|
||||
fs::path outputFile;
|
||||
|
||||
bool verbose;
|
||||
europa::structs::PakVersion pakVersion;
|
||||
bool sectorAligned;
|
||||
};
|
||||
|
||||
CreateTask();
|
||||
|
||||
void Init(argparse::ArgumentParser& parentParser) override;
|
||||
|
@ -41,6 +29,15 @@ namespace eupak::tasks {
|
|||
int Run() override;
|
||||
|
||||
private:
|
||||
struct Arguments {
|
||||
fs::path inputDirectory;
|
||||
fs::path outputFile;
|
||||
|
||||
bool verbose;
|
||||
europa::structs::PakVersion pakVersion;
|
||||
bool sectorAligned;
|
||||
};
|
||||
|
||||
argparse::ArgumentParser parser;
|
||||
Arguments currentArgs;
|
||||
};
|
||||
|
|
|
@ -16,11 +16,6 @@
|
|||
namespace eupak::tasks {
|
||||
|
||||
struct InfoTask : ITask {
|
||||
struct Arguments {
|
||||
fs::path inputPath;
|
||||
bool verbose;
|
||||
};
|
||||
|
||||
InfoTask();
|
||||
|
||||
void Init(argparse::ArgumentParser& parentParser) override;
|
||||
|
@ -32,6 +27,11 @@ namespace eupak::tasks {
|
|||
int Run() override;
|
||||
|
||||
private:
|
||||
struct Arguments {
|
||||
fs::path inputPath;
|
||||
bool verbose;
|
||||
};
|
||||
|
||||
argparse::ArgumentParser parser;
|
||||
Arguments currentArgs;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue