wiki:Add a command line option
  • To civl/config/IF/CIVLConstants.java:
    • Add public static String variable containing name of option
    • Add public final static Option variable for option using String var from above for name, plus a short description and default value
    • Add new Option to the getAllOptions() function
  • To civl/config/IF/CIVLConfiguration:
    • Add variable for storing value of option
    • Set value in constructor using config parameter passed in
    • Set value in copy constructor
    • Add getter and setter of option
  • To CIVL/grammar/Command.g4:
    • Add option to the grammar
  • To run/common/CIVLCommand:
    • Add the new Option from CIVLConstants into the appropriate lists of options for each CIVL command the option is applicable to. For instance if your option is for the CIVL show command, then add it to the CIVLCommand.addShowOption(...) list.
Last modified 3 years ago Last modified on 08/18/23 11:30:38
Note: See TracWiki for help on using the wiki.