Ignore:
Timestamp:
May 31, 2017, 10:44:04 AM (2 years ago)
Author:
cameron
Message:

Support for -label, -T, -Z flags, default (standard input) label for stdin

File:
1 edited

Legend:

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

    r5480 r5483  
    188188
    189189std::string LabelFlag;
    190 static cl::opt<std::string, true> LabelOption("label", cl::location(LabelFlag), cl::desc("Set a label for input lines matched from stdin."), cl::cat(Output_Options));
     190    static cl::opt<std::string, true> LabelOption("label", cl::location(LabelFlag), cl::init("(standard input)"),
     191                                              cl::desc("Set a label for input lines matched from stdin."), cl::cat(Output_Options));
    191192
    192193bool LineBufferedFlag;
     
    289290        llvm::report_fatal_error("Sorry, -s is not yet supported.\n");
    290291    }
    291     if (NullFlag) {
    292         llvm::report_fatal_error("Sorry, -Z is not yet supported.\n");
    293     }
    294292    if (ByteOffsetFlag) {
    295293        llvm::report_fatal_error("Sorry, -b is not yet supported.\n");
     
    298296        llvm::report_fatal_error("Sorry, -u is not yet supported.\n");
    299297    }
    300     if (InitialTabFlag) {
    301         llvm::report_fatal_error("Sorry, -T is not yet supported.\n");
    302     }
    303298    if (OnlyMatchingFlag) {
    304299        llvm::report_fatal_error("Sorry, -o is not yet supported.\n");
     
    316311        llvm::report_fatal_error("Sorry, -C is not yet supported.\n");
    317312    }
    318     if (LabelFlag!="") {
    319         llvm::report_fatal_error("Sorry, -label is not yet supported.\n");
    320     }
    321313    if (ColorFlag!=neverColor) {
    322314        llvm::report_fatal_error("Sorry, -color is not yet supported.\n");
Note: See TracChangeset for help on using the changeset viewer.