Changed: Use CCmdArgs for sheets_packer, see #281

--HG--
branch : develop
This commit is contained in:
kervala 2016-09-25 10:20:49 +02:00
parent 130b270380
commit 33dfd39409
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) 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. // // Initialize the application. //
try try

View file

@ -31,6 +31,10 @@
#include <nel/misc/bit_mem_stream.h> #include <nel/misc/bit_mem_stream.h>
#include <nel/misc/mem_stream.h> #include <nel/misc/mem_stream.h>
#include <nel/misc/sheet_id.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 #ifdef NL_OS_WINDOWS
#define NOMINMAX #define NOMINMAX