comp.lang.ada
 help / color / mirror / Atom feed
* Command Line Argument Package
@ 2004-07-27  3:44 Jeff C,
  2004-07-27 14:27 ` Björn Persson
  2004-07-27 14:55 ` Larry Kilgallen
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff C, @ 2004-07-27  3:44 UTC (permalink / raw)


I've posted a command line argument helper/utility package that I've had
around for a while. I've used it on a few small things and had intended to
clean it up some more and post it someday but it is already pretty useful.

http://newserver.thecreems.com/article.php?story=20040726220542693


The purpose of this package is to provide a cleaner way (or at least a more
fun way) to access command line arguments and to help automate the
generation of help page for the program.

There is some documentation in the header and a simple test program that
demonstrates some of the
concepts of the package. If anyone finds it useful I'll write up some more
complete docs.

It is a different approach than the GNU Getopts library (and the Similar Ada
version at http://www.adapower.com/reuse/). If you are looking for a more
traditional getopt approach, look there.








^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Command Line Argument Package
  2004-07-27  3:44 Command Line Argument Package Jeff C,
@ 2004-07-27 14:27 ` Björn Persson
  2004-07-27 14:55 ` Larry Kilgallen
  1 sibling, 0 replies; 4+ messages in thread
From: Björn Persson @ 2004-07-27 14:27 UTC (permalink / raw)


Jeff C, wrote:

> I've posted a command line argument helper/utility package that I've had
> around for a while. I've used it on a few small things and had intended to
> clean it up some more and post it someday but it is already pretty useful.
> 
> http://newserver.thecreems.com/article.php?story=20040726220542693

Nice package. I see you too have some of the ideas I have that have made 
me write my parameter handler Orto, which will be a part of AdaCL. Like 
your package, Orto looks up parameters by name rather than position, and 
prints help texts. It also interprets the parameters as numbers, 
booleans and so on. Its command line syntax is somewhat different from 
yours.

Orto isn't quite finished yet and the documentation is mostly missing, 
but it's functional on Gnu-based systems. The code can be viewed at 
http://cvs.sourceforge.net/viewcvs.py/adacl/adacl/Include/ (the 
adacl-command_line-orto* files).

-- 
Björn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Command Line Argument Package
  2004-07-27  3:44 Command Line Argument Package Jeff C,
  2004-07-27 14:27 ` Björn Persson
@ 2004-07-27 14:55 ` Larry Kilgallen
  2004-07-27 23:50   ` Jeff C,
  1 sibling, 1 reply; 4+ messages in thread
From: Larry Kilgallen @ 2004-07-27 14:55 UTC (permalink / raw)


In article <dckNc.38087$eM2.37786@attbi_s51>, "Jeff C," <jcreem@yahoo.com> writes:
> I've posted a command line argument helper/utility package that I've had
> around for a while. I've used it on a few small things and had intended to
> clean it up some more and post it someday but it is already pretty useful.

It would be better for your announcement of such to indicate what you
mean by "command line argument" processing.

Is this restricted to the "-this -THAT" Unix-style command lines ?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Command Line Argument Package
  2004-07-27 14:55 ` Larry Kilgallen
@ 2004-07-27 23:50   ` Jeff C,
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff C, @ 2004-07-27 23:50 UTC (permalink / raw)



"Larry Kilgallen" <Kilgallen@SpamCop.net> wrote in message
news:Dva2i$xEkliG@eisner.encompasserve.org...
> In article <dckNc.38087$eM2.37786@attbi_s51>, "Jeff C," <jcreem@yahoo.com>
writes:
> > I've posted a command line argument helper/utility package that I've had
> > around for a while. I've used it on a few small things and had intended
to
> > clean it up some more and post it someday but it is already pretty
useful.
>
> It would be better for your announcement of such to indicate what you
> mean by "command line argument" processing.
>
> Is this restricted to the "-this -THAT" Unix-style command lines ?


It is "designed" around the Unix/GNU approach (-f hello.txt or --file
hello.txt) but it really does not make
the -this assumption. Will work just file with /X /A /C style "Win32"
arguments but it will then not accept win32
style subarguments (since they are often concatentated onto the argument in
question (e.g. format /T:80)

Nothing stops you from using Unix like options on win32 platforms. Plenty of
programs do.

Granted on vxWorks it probably won't work for calling arbitrary routines
from the target shell.

On an osless non-command-line OS it might not work at all.









^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-27 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-27  3:44 Command Line Argument Package Jeff C,
2004-07-27 14:27 ` Björn Persson
2004-07-27 14:55 ` Larry Kilgallen
2004-07-27 23:50   ` Jeff C,

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox