Skip to content
Snippets Groups Projects

Issuedir

Merged Jack MacLauchlan CS2015 requested to merge issuedir into master
17 files
+ 524
145
Compare changes
  • Side-by-side
  • Inline
Files
17
@@ -10,7 +10,7 @@ public class CommandLineInterface {
this.options = new Options();
addOptions();
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp("to do", options); //todo
// formatter.printHelp("to do", options); //todo
}
@@ -33,6 +33,28 @@ public class CommandLineInterface {
.build();
uniqueCommands.addOption(createIssue);
Option showIssue = Option.builder()
.longOpt("show")
.hasArg()
.argName("ID")
.desc("show issue with ID")
.build();
uniqueCommands.addOption(showIssue);
Option ls = Option.builder()
.longOpt("ls")
.desc("list issues")
.build();
uniqueCommands.addOption(ls);
Option comment = Option.builder()
.longOpt("comment")
.hasArgs()
.argName("ID> <MESSAGE")
.numberOfArgs(2)
.desc("comment on issue with given id")
.build();
uniqueCommands.addOption(comment);
// Option createIssue = Option.builder()
// .longOpt("new")
@@ -58,17 +80,6 @@ public class CommandLineInterface {
.build();
uniqueCommands.addOption(deleteIssue);
Option comment = Option.builder()
.longOpt("comment")
.desc("comment on issue with given id")
.build();
uniqueCommands.addOption(comment);
Option viewIssues = Option.builder()
.longOpt("view")
.desc("view on issue with given id")
.build();
uniqueCommands.addOption(viewIssues);
options.addOptionGroup(uniqueCommands);
Loading