2917e71aad
Argp is really useful, but it's not mandatory.
20 строки
330 B
C
20 строки
330 B
C
#include "torture.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
static int verbosity = 0;
|
|
|
|
int torture_libssh_verbosity(void){
|
|
return verbosity;
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
struct argument_s arguments;
|
|
|
|
arguments.verbose=0;
|
|
torture_cmdline_parse(argc, argv, &arguments);
|
|
verbosity=arguments.verbose;
|
|
|
|
return torture_run_tests();
|
|
}
|