Integrated: 1878: Improve argument check in SKARA CLI
Zhao Song
zsong at openjdk.org
Mon Apr 17 18:29:22 UTC 2023
On Thu, 13 Apr 2023 22:54:06 GMT, Zhao Song <zsong at openjdk.org> wrote:
> Currently, if a user misuses a command, in some cases, SKARA CLI crashes and throws a stack trace, which is bad and does not provide useful information to the user.
>
> After investigating, I found that in many places, we don't check whether an option is followed by an argument, and it would trigger some issues.
>
> In this patch, the program would always check the presence of an argument before attempting to retrieve it for an option.
This pull request has now been integrated.
Changeset: e95942fa
Author: Zhao Song <zsong at openjdk.org>
URL: https://git.openjdk.org/skara/commit/e95942fa0909874462bbccf354533f83d7bc3aa9
Stats: 144 lines in 14 files changed: 44 ins; 49 del; 51 mod
1878: Improve argument check in SKARA CLI
Reviewed-by: erikj
-------------
PR: https://git.openjdk.org/skara/pull/1502
More information about the skara-dev
mailing list