Przeglądaj źródła

small --help print bugfix

master
Roelens maxim 3 lat temu
rodzic
commit
0a241b0721

+ 3
- 0
src/main/java/META-INF/MANIFEST.MF Wyświetl plik

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: be.syntra.beige.team.App


+ 1
- 1
src/main/java/be/syntra/beige/team/App.java Wyświetl plik

@@ -64,7 +64,7 @@ public class App {
System.out.println(e + ":" + "watching failed");
}
}
} else System.out.println(interpreter.getError());
} else if(!interpreter.isHelp()) System.out.println(interpreter.getError());
} catch (Exception e){
e.printStackTrace();
}

+ 7
- 0
src/main/java/be/syntra/beige/team/CommandLineInterpreter.java Wyświetl plik

@@ -33,6 +33,7 @@ public class CommandLineInterpreter {
private static Path inputPathForDirectory;
private static Path outputPathForDirectory;
private static boolean isError = false;
private boolean help = false;
private static String error = "Something went wrong. Check \"--help\" for commands";


@@ -78,6 +79,11 @@ public class CommandLineInterpreter {
public static boolean isUpdate() {
return update;
}

public boolean isHelp() {
return help;
}

/*
OTHER METHODS
*/
@@ -183,6 +189,7 @@ public class CommandLineInterpreter {
* Prints commands to console
*/
public void showCommands(){
help = true;
System.out.println("# Compiles index.haml to index.html.");
System.out.println("$ java -jar HamlIt.jar index.haml:index.html \n");


Ładowanie…
Anuluj
Zapisz