@@ -12,20 +12,22 @@ interface
1212;
1313
1414const
15- cShortOptHelp: Char = ' h' ;
16- cLongOptHelp = ' help' ;
17- cShortOptVersion: Char = ' v' ;
18- cLongOptVersion = ' version' ;
19- cShortOptInput: Char = ' i' ;
20- cLongOptInput = ' input-file' ;
21- cShortOptOutput: Char = ' o' ;
22- cLongOptOutput = ' output-file' ;
23- cShortOptNumber: Char = ' n' ;
24- cLongOptNumber = ' line-count' ;
15+ cShortOptHelp: Char = ' h' ;
16+ cLongOptHelp = ' help' ;
17+ cShortOptVersion: Char = ' v' ;
18+ cLongOptVersion = ' version' ;
19+ cShortOptInput: Char = ' i' ;
20+ cLongOptInput = ' input-file' ;
21+ cShortOptOutput: Char = ' o' ;
22+ cLongOptOutput = ' output-file' ;
23+ cShortOptNumber: Char = ' n' ;
24+ cLongOptNumber = ' line-count' ;
25+ cShortOptStations: Char = ' 4' ;
26+ cLongOptStations = ' 400stations' ;
2527 { $IFNDEF FPC}
26- cShortOptions: array of char = [' h' , ' v' , ' i' , ' o' , ' n' ];
28+ cShortOptions: array of char = [' h' , ' v' , ' i' , ' o' , ' n' , ' 4 ' ];
2729 cLongOptions: array of string = [' help' , ' version' , ' input-file' , ' output-file' ,
28- ' line-count' ];
30+ ' line-count' , ' 400stations ' ];
2931 { $ENDIF}
3032
3133resourcestring
@@ -44,7 +46,8 @@ interface
4446var
4547 inputFilename: String = ' ' ;
4648 outputFilename: String = ' ' ;
47- lineCount: Integer = 0 ;
49+ lineCount: Integer = 0 ;
50+ only400Stations: Boolean = False;
4851
4952procedure WriteHelp ;
5053
@@ -64,6 +67,7 @@ procedure WriteHelp;
6467 WriteLn(' -i|--input-file <filename> The file containing the Weather Stations' );
6568 WriteLn(' -o|--output-file <filename> The file that will contain the generated lines' );
6669 WriteLn(' -n|--line-count <number> The amount of lines to be generated ( Can use 1_000_000_000 )' );
70+ WriteLn(' -4|--400stations Only 400 weather stations in output file' );
6771end ;
6872
6973end .
0 commit comments