Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Parsing NE Command Line Arguments

by ww (Archbishop)
on Sep 28, 2016 at 15:26 UTC ( [id://1172845]=note: print w/replies, xml ) Need Help??


in reply to Parsing NE Command Line Arguments

Have you checked what seem to be at least half a dozen possibilities found in the doc? Most require creating a handler, but that should be simple enough for your example case. Of course, if your example is not the real usage, the balance of this node is probably unhelpful.

Also, see,

pass_through (default: disabled)
With pass_through anything that is unknown, ambiguous or supplied with an invalid option will not be flagged as an error. Instead the unknown option(s) will be passed to the catchall <> if present, otherwise through to @ARGV . This makes it possible to write wrapper scripts that process only part of the user supplied command line arguments, and pass the remaining options to some other program.

That/s pretty far down in the doc; the others (left as an exercise for the SOPW) are found in earlier parts of http://perldoc.perl.org/Getopt/Long.html (but don't be misled by the earlier section on negation, which deals with negating built in options.

Replies are listed 'Best First'.
Re^2: Parsing NE Command Line Arguments
by Scully4Ever (Novice) on Sep 28, 2016 at 16:34 UTC

    The pass_through option will work. Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found