Skip to content

Commit

Permalink
OrcCommand: GetSectors: add partial support for 'log' option
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Feb 11, 2021
1 parent 9e3c181 commit 3d88459
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OrcCommand/GetSectors_Config.cpp
Expand Up @@ -30,6 +30,8 @@ HRESULT Main::GetSchemaFromConfig(const ConfigItem& schemaitem)

HRESULT Main::GetConfigurationFromArgcArgv(int argc, LPCWSTR argv[])
{
UtilitiesLoggerConfiguration::Parse(argc, argv, m_utilitiesConfig.log);

for (int i = 1; i < argc; i++)
{
switch (argv[i][0])
Expand Down Expand Up @@ -83,6 +85,8 @@ HRESULT Main::GetConfigurationFromArgcArgv(int argc, LPCWSTR argv[])

HRESULT Main::CheckConfiguration()
{
UtilitiesLoggerConfiguration::Apply(m_logging, m_utilitiesConfig.log);

if ((!config.customSample) && (!config.dumpLegacyBootCode) && (!config.dumpSlackSpace) && (!config.dumpUefiFull))
{
Log::Error(L"[!] You must specify something to dump. Use /help to list the available options.");
Expand Down

0 comments on commit 3d88459

Please sign in to comment.