-
Notifications
You must be signed in to change notification settings - Fork 683
Add help flag and usage to UNIX Jerry standalone. #1000
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
Conversation
static void | ||
print_usage () | ||
{ | ||
printf ("Usage: ./jerry [flags] [js-file ...]\n" |
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.
Better to use argv[0]
instead of ./jerry
, IMHO.
@akiss77, I've updated the patch, the format now falls more in line with other tools. |
{ | ||
save_snapshot_file_name_p = argv[i]; | ||
} | ||
else | ||
{ | ||
JERRY_ERROR_MSG ("Error: wrong format of the arguments\n"); | ||
JERRY_ERROR_MSG ("Error: no file specified for %s\n", argv[i-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.
Oh, my bad. We are using spaces around operators. So, it's i - 1
. (I know, I was the one who wrote i-1
in the review. Sorry :( )
Even though I might seem picky (which I know I am), I think that the patch is improving in the right direction. And it is needed. |
9d516ea
to
0b66854
Compare
It's okay to be picky :). Updated again. |
Thanks for the rewrites. Now: LGTM (FWIW) |
LGTM |
(Please, rebase to current master) |
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
@akiss77, Done. |
LGTM |
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu