Clarified clixon_cli command-line: clixon_cli [options] [commands] [-- extra-options]

This commit is contained in:
Olof hagsand 2023-08-07 18:15:49 +02:00
parent bee30a4ea0
commit f067968535
4 changed files with 73 additions and 14 deletions

View file

@ -858,11 +858,15 @@ done:
return retval;
}
int cli_show_version(clicon_handle h,
cvec *vars,
cvec *argv)
/*! Show clixon and CLIgen versions
*/
int
cli_show_version(clicon_handle h,
cvec *vars,
cvec *argv)
{
fprintf(stdout, "%s\n", CLIXON_VERSION_STRING);
fprintf(stdout, "Clixon: %s\n", CLIXON_VERSION_STRING);
fprintf(stdout, "CLIgen: %s\n", CLIGEN_VERSION);
return 0;
}