"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/7zip/UI/Common/ArchiveCommandLine.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

ArchiveCommandLine.cpp  (p7zip_15.14.1_src_all):ArchiveCommandLine.cpp  (p7zip_16.02_src_all)
skipping to change at line 1059 skipping to change at line 1059
bp.Def = parser[switchID].ThereIs; bp.Def = parser[switchID].ThereIs;
if (bp.Def) if (bp.Def)
bp.Val = !parser[switchID].WithMinus; bp.Val = !parser[switchID].WithMinus;
} }
void CArcCmdLineParser::Parse2(CArcCmdLineOptions &options) void CArcCmdLineParser::Parse2(CArcCmdLineOptions &options)
{ {
const UStringVector &nonSwitchStrings = parser.NonSwitchStrings; const UStringVector &nonSwitchStrings = parser.NonSwitchStrings;
unsigned numNonSwitchStrings = nonSwitchStrings.Size(); unsigned numNonSwitchStrings = nonSwitchStrings.Size();
if (numNonSwitchStrings < kMinNonSwitchWords) if (numNonSwitchStrings < kMinNonSwitchWords)
throw CArcCmdLineException("The command must be spcified"); throw CArcCmdLineException("The command must be specified");
if (!ParseArchiveCommand(nonSwitchStrings[kCommandIndex], options.Command)) if (!ParseArchiveCommand(nonSwitchStrings[kCommandIndex], options.Command))
throw CArcCmdLineException("Unsupported command:", nonSwitchStrings[kCommand Index]); throw CArcCmdLineException("Unsupported command:", nonSwitchStrings[kCommand Index]);
if (parser[NKey::kHash].ThereIs) if (parser[NKey::kHash].ThereIs)
options.HashMethods = parser[NKey::kHash].PostStrings; options.HashMethods = parser[NKey::kHash].PostStrings;
if (parser[NKey::kElimDup].ThereIs) if (parser[NKey::kElimDup].ThereIs)
{ {
options.ExtractOptions.ElimDup.Def = true; options.ExtractOptions.ElimDup.Def = true;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS