Commit | Line | Data |
---|---|---|
30628092 | 1 | #include "cll1.h" |
2 | ||
420bb771 | 3 | //try to run: ./arguments2 -f reload yyyy -? |
30628092 | 4 | |
5 | program | |
6 | { | |
420bb771 | 7 | if_args then |
30628092 | 8 | { |
420bb771 | 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 | } | |
30628092 | 24 | } |
25 | else | |
420bb771 | 26 | print("Bleeeeh, no arguments supplied... :-("); |
30628092 | 27 | } |