30628092 |
1 | #include "cll1.h" |
2 | |
b194148d |
3 | /* try to run: ./arguments1 -x xxx yyyy -c cccc */ |
30628092 |
4 | |
5 | program |
6 | { |
3851f7ab |
7 | if_args |
30628092 |
8 | { |
420bb771 |
9 | for_args |
30628092 |
10 | { |
3851f7ab |
11 | if this_arg[0] == '-') |
420bb771 |
12 | { |
13 | printf("Command line switch: -%c ",ptr[1]); |
14 | if (next_arg) then |
15 | { |
16 | echo("followed by: ",next_arg); |
e91cd880 |
17 | skip_next; |
420bb771 |
18 | } |
19 | print(""); |
20 | } |
21 | else |
22 | print("Standalone argument: ",ptr); |
30628092 |
23 | } |
30628092 |
24 | } |
25 | else |
420bb771 |
26 | print("Bleeeeh, no arguments supplied... :-("); |
30628092 |
27 | } |