summaryrefslogtreecommitdiff
path: root/test/test1.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-27 21:59:03 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-27 21:59:03 +0100
commit7cf1c1d56674382ba2b10d0f0cd8b56023c9a861 (patch)
tree3f51ea4a3e33b65f2f6cebc1b88c2d80acd947d7 /test/test1.c
parent47a9b0bb556784757f36e15f5a00d05dabc9756f (diff)
downloadlibarg-7cf1c1d56674382ba2b10d0f0cd8b56023c9a861.tar.gz
libarg-7cf1c1d56674382ba2b10d0f0cd8b56023c9a861.zip
Added LIST type support
Diffstat (limited to 'test/test1.c')
-rw-r--r--test/test1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test1.c b/test/test1.c
index eea5759..f6a7a70 100644
--- a/test/test1.c
+++ b/test/test1.c
@@ -3,12 +3,15 @@
#include "../arg.h"
+//define ip4 127.0.0.1:8080
s_arg_ip src_ip =
{
.port = 8080,
.ip = 0x7f000001
};
+//?
+//frequency range from 88:108
s_arg_range freq_range =
{
.start = 88,
@@ -41,7 +44,7 @@ def_arg cmd_arg[] =
ARG_ENTRY("-c",FLOAT,&ratio_float),
ARG_ENTRY("-d",LIST,&color_name_list),
ARG_ENTRY("-e",VAL,&number_val),
- ARG_ENTRY("-f",FLAG,NULL),
+ ARG_ENTRY("-f",FILE,NULL),
ARG_ENTRY("-g",FLAG,NULL),
{NULL,0,NULL}
};