-
Notifications
You must be signed in to change notification settings - Fork 36
refactor client command line parsing and LoginStatus success check #202
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
base: main
Are you sure you want to change the base?
refactor client command line parsing and LoginStatus success check #202
Conversation
Signed-off-by: Mitch Gaffigan <[email protected]>
LoginPanel.java copyright change is based on 3954bc5 Signed-off-by: Mitch Gaffigan <[email protected]>
mgaffigan
left a comment
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.
LGTM (obviously 😃)
|
|
||
| if (args.length > 0) { | ||
| server = args[0]; | ||
| } |
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.
nitpick: new line between blocks
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.
I'm actually going to disagree on this. I don't think it would improve readability and would just add more scrolling. Is there a style guide that recommends separating consecutive if statements with blank lines? If we keep it this way, the blank line on line 33 should probably be removed for consistency.
| } | ||
| if (args.length > 1) { | ||
| version = args[1]; | ||
| } |
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.
nitpick: new line between blocks
| username = args[2]; | ||
| if (args.length > 3) { | ||
| password = args[3]; | ||
| } |
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.
nitpick: new line between blocks
Extracted the first two commits from #175 to make it a more digestible chunk. No changes except to file headers.
The new files were missing headers, so I added them in SPDX format. I also updated the headers of the remaining files in the commits marking the copyright holders of each file as I felt appropriate. The changes in these commits I do not think warranted a copyright addition for file LoginPanel.java, however, I think previous changes to this file did, as noted in the commit message.