63276cf49b97efa2a6b73aa2918716feba484376
[svn/Cll1h/.git] / demos / arguments2.c
1 #include "cll1.h"
2
3 //try to run: ./arguments2 -f reload yyyy -?
4
5 program
6 {
7 if_args then
8 {
9 for_args
10 {
11 if_arg ("-?") then
12 print("This is just help!");
13 else if_arg ("-f") then
14 {
15 if (next_arg) then
16 {
17 print("Forced argument: ",next_arg);
18 skip_one;
19 }
20 }
21 else
22 print("Normal argument: ",this_arg);
23 }
24 }
25 else
26 print("Bleeeeh, no arguments supplied... :-(");
27 }
This page took 0.240784 seconds and 3 git commands to generate.