Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

MINIFI-81 Adding a check for a valid command to the config.sh toolkit… #39

Closed
wants to merge 1 commit into from

Conversation

JPercivall
Copy link
Contributor

… script

@apiri
Copy link
Member

apiri commented Sep 23, 2016

reviewing

@@ -85,8 +85,6 @@ public static void main(String[] args) {
public static void printValidateUsage() {
System.out.println("Validate Usage:");
System.out.println();
System.out.print("java ");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this and the other java invocation remain given that the interpretation of arguments is handled by the script when invoked from the script? This is valid in the context the class is run by itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @apiri, I chose to remove them because they can lead to very confusing errors messages for user who ran it using the scripts. If they happen to mis-type a file location not only would they see the error saying the file doesn't exist but also this "java ..." line that was quite confusing.

Also, I see this being run using the script in >99% of the cases.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough, will merge

@apiri
Copy link
Member

apiri commented Sep 23, 2016

Everything looks good. Just wondering if we should keep usage for the main class such that it is applicable if run independently of the script. If not, would think we should perhaps just nix those two methods entirely.

@asfgit asfgit closed this in 974c536 Sep 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants