help w/command line argument 
Author Message
 help w/command line argument

hi,

i'm a (perl) newbie w/a question re: command line argument.

what should i use to do:
   progname   arg(s)

i was able to use Getopt::Std, but i'm trying to make this proggie
easier for the end users so they don't have to memorize the switches.
the ability to see output and error would be great.

what is your suggestion?

tia,
another perl newbie

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Sun, 13 Jan 2002 03:00:00 GMT  
 help w/command line argument


: what should i use to do:
:    progname   arg(s)

Use one of the Getopt option parsers or write your own.  It's not that
hard.  We might offer code, but you don't say what you want.

: i was able to use Getopt::Std, but i'm trying to make this proggie
: easier for the end users so they don't have to memorize the switches.

No one has every switch of every utility memorized.  Write a good man
page so people can look up the options if they need to.

: the ability to see output and error would be great.

Maybe you should elaborate on this so we can get a better idea of what
you want.

Greg
--
Politicians and diapers have one thing in common. They should both be changed
regularly and for the same reason.
    -- Gerry Brooks



Sun, 13 Jan 2002 03:00:00 GMT  
 help w/command line argument

Quote:

> hi,

> i'm a (perl) newbie w/a question re: command line argument.

> what should i use to do:
>    progname   arg(s)

> i was able to use Getopt::Std, but i'm trying to make this proggie
> easier for the end users so they don't have to memorize the switches.
> the ability to see output and error would be great.

Well, you can't make it totally transparent to the user.  The
user has to do *something* with his/her 'little gray cells'.
What I do is to write a here-doc which gets printed when a help
flag is typed [often -h or -? or /h or /? depending on the OS]
or when an incorrect set of options is specified.  The here-doc
has the short form of set of switches, so the user gets a little
screen of options and guidelines.  My usual model for this is the
subroutine 'usage' from Tom Christiansen's tcgrep program.

Alternatively, you can use Tk and put up a window with buttons
and menus which let the user pick and choose, correcting errors
as they go.

David
--

Senior computing specialist
mathematical statistician



Sun, 13 Jan 2002 03:00:00 GMT  
 help w/command line argument

in <URL::">
.. hi,
..
.. i'm a (perl) newbie w/a question re: command line argument.
..
.. what should i use to do:
..    progname   arg(s)
..
.. i was able to use Getopt::Std, but i'm trying to make this proggie
.. easier for the end users so they don't have to memorize the switches.

Then I would write my program such that it doesn't take switches!

.. the ability to see output and error would be great.

To do that, I would upgrade my users with "Eye Patch VI".

.. what is your suggestion?

Well.... what is your question?

Abigail
--


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----



Sun, 13 Jan 2002 03:00:00 GMT  
 help w/command line argument

Quote:
> Then I would write my program such that it doesn't take switches!

how? got samples?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



Mon, 14 Jan 2002 03:00:00 GMT  
 help w/command line argument

Quote:
> Use one of the Getopt option parsers or write your own.  It's not that
> hard.  We might offer code, but you don't say what you want.

which getopt parser are you referring to?
i want to pass an arg to a script within my proggie.

Quote:
> : the ability to see output and error would be great.

> Maybe you should elaborate on this so we can get a better idea of what
> you want.

to see stderr and stdout

nu B

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



Mon, 14 Jan 2002 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Need help with command line arguments

2. Help! with command line arguments

3. Help passing argument to the command line

4. Command line argument help please

5. running perl at command line with arguments: script.cgi?text=text

6. Command line arguments.

7. Simple reordering of command line arguments.

8. Command line arguments?

9. Passing form values back to a script as command line arguments

10. How to set varible from command line argument??

11. patch1 for wafeperl 0.2 to allow xt command line argument processing

12. Modification of command line arguments

 

 
Powered by phpBB® Forum Software