Improved CLI experience
This commit is contained in:
9
utils.c
9
utils.c
@@ -22,16 +22,21 @@ typedef struct {
|
||||
*/
|
||||
static cli_arg_t _cli_args[MAX_CLI_ARGS];
|
||||
|
||||
/*
|
||||
* Public data
|
||||
*/
|
||||
int flag_verbose = 0;
|
||||
|
||||
/*
|
||||
* Public API
|
||||
*/
|
||||
void print_usage_text() {
|
||||
printf("ipoim -M <mode> -A <address> -P <port> -C <carrier> ...\n");
|
||||
printf(" --- MANDATORY ARGUMENTS ---\n");
|
||||
printf(" -M <mode> - operation mode ('provider' or 'last-mile')\n");
|
||||
printf(" -M <mode> - operation mode ('server' or 'client')\n");
|
||||
printf(" -A <address> - IPv4 to listen on/connect to\n");
|
||||
printf(" -P <port> - port to listen on/connect to\n");
|
||||
printf(" -E <carrier> - extension to use, one of:\n");
|
||||
printf(" -E <extension> - extension to use, one of:\n");
|
||||
printf(" * pipe - use STDIN and STDOUT\n");
|
||||
printf(" --- OPTIONAL ARGUMENTS ---\n");
|
||||
printf(" +V - be verbose\n");
|
||||
|
||||
Reference in New Issue
Block a user