Changeset 19625 for trunk/Mars/mbase


Ignore:
Timestamp:
09/05/19 11:30:50 (5 years ago)
Author:
tbretz
Message:
Added the possibility to inject an argument manually.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MArgs.h

    r9482 r19625  
    7575    static TString GetCommandLine(int argc, char **argv) { return MArgs(argc, argv).GetCommandLine(); }
    7676
     77    void AddEntry(const char *arg)
     78    {
     79        fArgv.Add(new MArgsEntry(arg));
     80        fArgc++;
     81    }
     82
    7783    ClassDef(MArgs, 0)  //Class to parse command line arguments
    7884};
Note: See TracChangeset for help on using the changeset viewer.