Changeset 4994


Ignore:
Timestamp:
Mar 30, 2016, 4:22:32 PM (18 months ago)
Author:
cameron
Message:

Show filenames with -c option as required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain.cpp

    r4991 r4994  
    202202void PrintResult(){
    203203    if(CountOnly){
    204         for (int i=1; i<inputFiles.size(); i++){
    205             std::cout << total_count[i-1] << std::endl;
     204        if (!ShowFileNames) {
     205           for (int i=1; i<inputFiles.size(); i++){
     206               std::cout << total_count[i-1] << std::endl;
     207           }
     208        }
     209        else {
     210            for (int i=1; i<inputFiles.size(); i++){
     211                std::cout << inputFiles[i] << ':' << total_count[i-1] << std::endl;
     212            };
    206213        }
    207214        return;
Note: See TracChangeset for help on using the changeset viewer.