reading command line arguments

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

reading command line arguments

edA-qa mort-ora-y
Is there a standard API to read command-line arguments?

I need just the bare minimum argv access.

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

BigTPoker uses haXe and DHLIB
        http://BigTPoker.com/?source=haxe-list

The dis-Emi-A haXe Library
        http://wiki.disemia.com/HaXe
       
A full set of tools, classes, and support facilities aimed at
simplifying and expediting game creation in Flash 9.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.


--
haXe - an open source web programming language
http://haxe.org

signature.asc (260 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: reading command line arguments

Ian Liu Rodrigues
neko.Sys.args()

Ian L.

On Sun, Oct 4, 2009 at 8:42 AM, edA-qa mort-ora-y <[hidden email]> wrote:
Is there a standard API to read command-line arguments?

I need just the bare minimum argv access.

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

BigTPoker uses haXe and DHLIB
       http://BigTPoker.com/?source=haxe-list

The dis-Emi-A haXe Library
       http://wiki.disemia.com/HaXe

A full set of tools, classes, and support facilities aimed at
simplifying and expediting game creation in Flash 9.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: reading command line arguments

tong-2
In reply to this post by edA-qa mort-ora-y
On Sun, 2009-10-04 at 13:42 +0200, edA-qa mort-ora-y wrote:
> Is there a standard API to read command-line arguments?
>
> I need just the bare minimum argv access.

hi,

i've written a (python style) getopt parser.
http://disktree.spektral.at/git/?a=viewblob&p=core&h=bf36697762e9caa34fbd78ddb7b242e7775bd851&hb=2438c82398ae4b2c834b8bec3837f40d811e9589&f=opt/Parser.hx

i never used it so far, so expect the unexpected, but it should work
(hopefully).

/tong


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: reading command line arguments

Justin Donaldson
Thanks for this, it'll come in handy...

-Justin

On Mon, Oct 5, 2009 at 10:31 AM, tong <[hidden email]> wrote:
On Sun, 2009-10-04 at 13:42 +0200, edA-qa mort-ora-y wrote:
> Is there a standard API to read command-line arguments?
>
> I need just the bare minimum argv access.

hi,

i've written a (python style) getopt parser.
http://disktree.spektral.at/git/?a=viewblob&p=core&h=bf36697762e9caa34fbd78ddb7b242e7775bd851&hb=2438c82398ae4b2c834b8bec3837f40d811e9589&f=opt/Parser.hx

i never used it so far, so expect the unexpected, but it should work
(hopefully).

/tong


--
haXe - an open source web programming language
http://haxe.org



--
Justin Donaldson
PhD Candidate, Informatics
Indiana University
http://www.scwn.net
aim: iujjd
twitter: jjdonald

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: reading command line arguments

Jens Peter Secher
In reply to this post by edA-qa mort-ora-y
2009/10/4 edA-qa mort-ora-y <[hidden email]>:
> Is there a standard API to read command-line arguments?

I have attached a command-line parser I have written, you might find it useful.

--
                                                    Jens Peter Secher.
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_.
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

--
haXe - an open source web programming language
http://haxe.org

GetPot.hx (5K) Download Attachment
GetPotUnitTest.hx (3K) Download Attachment