Menu

geting the command line for a tool in dev-pas

edexter
2007-09-11
2012-09-26
  • edexter

    edexter - 2007-09-11
     I wrote a small template for a pascal graphics package and I was wanting to know what I have to do in the script to get an argument for the command line.
    

    (this is the script (c) 2007 eric dexter )

    import sys

    outfile = open(sys.argv[1],'w')

    //need to use the command line

    outfile.write("""uses wingraph;
    var
    gd,gm : smallint;
    begin;
    gd:=Detect;
    InitGraph(gd,gm,'');
    //<your code here>
    repeat until CloseGraphRequest; //this waits for close button to be clicked
    CloseGraph;
    end.""")

    outfile.close()

    I also noticed a number of years ago you were looking for a maintainer for bloodshed pascal.... Does that include the banner space and a free disk with that gnu pascal thing that I haven't been able to install on it (I got rid of the errors but it ignores me).. I would like to say that I like gui builders but the lazerus thing isn't my cup of tea..

     
    • edexter

      edexter - 2007-09-11

      I just want to mention the code is in python but there are python to various language converters for this sort of thing..

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.