Added blocksize, doudf, and doiso flags.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,7 +19,12 @@
|
||||
#include "UdfBuilder.h"
|
||||
|
||||
Shell::Shell()
|
||||
// The following settings are essentially default values
|
||||
// for all the command-line options.
|
||||
: fVerbosityLevel(VERBOSITY_HIGH)
|
||||
, fBlockSize(2048)
|
||||
, fDoUdf(true)
|
||||
, fDoIso(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -30,11 +35,16 @@ Shell::Run(int argc, char *argv[])
|
||||
status_t error = _ProcessArguments(argc, argv);
|
||||
if (!error) {
|
||||
ConsoleListener listener(fVerbosityLevel);
|
||||
UdfBuilder builder(listener);
|
||||
builder.Build();
|
||||
} else {
|
||||
_PrintHelp();
|
||||
UdfBuilder builder("./output.img", fBlockSize, fDoUdf, fDoIso,
|
||||
listener);
|
||||
error = builder.InitCheck();
|
||||
if (!error)
|
||||
error = builder.Build();
|
||||
}
|
||||
|
||||
if (error)
|
||||
_PrintHelp();
|
||||
|
||||
RETURN(error);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@ private:
|
||||
void _PrintHelp();
|
||||
|
||||
VerbosityLevel fVerbosityLevel;
|
||||
uint32 fBlockSize;
|
||||
bool fDoUdf;
|
||||
bool fDoIso;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user