Changed: Use CCmdArgs for sheets_packer, see #281

This commit is contained in:
kervala 2016-09-25 10:20:49 +02:00
parent 6ef43342bc
commit fb86f597b4
2 changed files with 15 additions and 0 deletions

View file

@ -57,6 +57,17 @@ static uint32 Version = 1; // Client Version.
//---------------------------------------------------
int main(int argc, char **argv)
{
CApplicationContext applicationContext;
// Parse Command Line.
NLMISC::CCmdArgs args;
args.setDescription("Pack all sheets needed by client. All parameters must be defined in sheets_packer.cfg and there is no parameters from command-line.");
if (!args.parse(argc, argv)) return 1;
CFileDisplayer *fd = NULL;
/////////////////////////////////
// Initialize the application. //
try

View file

@ -31,6 +31,10 @@
#include <nel/misc/bit_mem_stream.h>
#include <nel/misc/mem_stream.h>
#include <nel/misc/sheet_id.h>
#include <nel/misc/debug.h>
#include <nel/misc/cmd_args.h>
#include <nel/ligo/ligo_config.h>
#include <nel/ligo/primitive_utils.h>
#ifdef NL_OS_WINDOWS
#define NOMINMAX