title: Command Line Args in pascal
body: <p>I am new in pascal I have a program which gives result ....
  I need to pass command line input in in given variable ip1 and ip2.
  Its can be achieved by ParamStr[1] but it doesn't work.</p>
  <pre><code>  program main;
        var 
          output : integer;
        var 
          ip1 : integer;
        var 
          ip2 : integer;
      
      function add(input1,input2:integer) : integer;
         var
         result: integer;
      begin
         if (input1 &gt; input2) then
            result := input1
         else
            result := input2;
         add := result;
      end;
      
      begin
        ip1 := 2533;**{ command line input}**
        ip2 := 555;**{ command line input}**
      
        output := add(ip1,ip2);
        writeln( ' output : ', output );
      end.K
  </code></pre>