Skip to content

Commit

Permalink
fix: version command
Browse files Browse the repository at this point in the history
  • Loading branch information
ajami1331 committed Jan 11, 2025
1 parent 79f557e commit bbae6ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ struct command root_command = {
int version_command_func(struct command *cur, int argc, char **argv)
{
printf("socli version %s\n", PROJECT_VERSION_STR);
printf("Targert URL: %s\n", TARGET_URL);
printf("Built with %s\n", curl_version());
printf("Built on %s %s\n", __DATE__, __TIME__);
printf("Targert URL: %s\n", TARGET_URL);
return 0;
}

Expand Down Expand Up @@ -78,6 +78,7 @@ int main(int argc, char **argv)
arrpush(root_command.sub, init_contest_command());
arrpush(root_command.sub, init_judge_command());
arrpush(root_command.sub, init_login_command());
arrpush(root_command.sub, &root_version_command);

return root_command.func(&root_command, argc - 1, argv + 1);
}

0 comments on commit bbae6ca

Please sign in to comment.