Changes between Initial Version and Version 1 of Add a command line option


Ignore:
Timestamp:
08/18/23 11:30:38 (3 years ago)
Author:
Alex Wilton
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Add a command line option

    v1 v1  
     1- To `civl/config/IF/CIVLConstants.java`:
     2   * Add `public static String` variable containing name of option
     3   * Add `public final static Option` variable for option using `String` var from above for name, plus a short description and default value
     4   * Add new `Option` to the `getAllOptions()` function
     5- To `civl/config/IF/CIVLConfiguration`:
     6   * Add variable for storing value of option
     7   * Set value in constructor using config parameter passed in
     8   * Set value in copy constructor
     9   * Add getter and setter of option
     10- To `CIVL/grammar/Command.g4`:
     11   * Add option to the grammar
     12- To `run/common/CIVLCommand`:
     13   * 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.