-
Notifications
You must be signed in to change notification settings - Fork 66
Improved SRP and extract classes/methods for better modularity #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
09fa6ab
f7dd2fc
92ba4e9
d51e860
db98bbc
106ff4e
be79a8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
mohammedhashim790 marked this conversation as resolved.
Outdated
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| package Designite.ArgumentParser; | ||
|
|
||
| import org.apache.commons.cli.Option; | ||
|
|
||
| /** | ||
| * {@code ArgumentParser} is an abstract class to share responsibility between console and debugging application | ||
| */ | ||
| public abstract class ArgumentParser { | ||
| /** | ||
|
mohammedhashim790 marked this conversation as resolved.
|
||
| * {@code createRequiredOption}. A method to initialise required {@link Option}. | ||
| * @param shortOpt | ||
| * @param longOpt | ||
| * @param description | ||
| * @return | ||
| */ | ||
| Option createRequiredOption(String shortOpt, String longOpt, String description) { | ||
| Option option = new Option(shortOpt, longOpt, true, description); | ||
| option.setRequired(true); | ||
| return option; | ||
| } | ||
|
|
||
| /** | ||
| * {@code parseArguments} converts the appropriate {@code args} parameter from the system. | ||
| * It extracts the data from system arguments. | ||
| * @param args | ||
| * @return | ||
| */ | ||
| public abstract InputArgs parseArguments(String[] args); | ||
|
|
||
|
|
||
|
|
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this.