Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getopt::long::descriptive::usage(3pm) [debian man page]

Getopt::Long::Descriptive::Usage(3pm)			User Contributed Perl Documentation		     Getopt::Long::Descriptive::Usage(3pm)

NAME
Getopt::Long::Descriptive::Usage - the usage description for GLD VERSION
version 0.091 SYNOPSIS
use Getopt::Long::Descriptive; my ($opt, $usage) = describe_options( ... ); $usage->text; # complete usage message $usage->die; # die with usage message DESCRIPTION
This document only describes the methods of the Usage object. For information on how to use Getopt::Long::Descriptive, consult its documentation. METHODS
new my $usage = Getopt::Long::Descriptive::Usage->new(\%arg); You really don't need to call this. GLD will do it for you. Valid arguments are: options - an arrayref of options leader_text - the text that leads the usage; this may go away! text This returns the full text of the usage message. leader_text This returns the text that comes at the beginning of the usage message. option_text This returns the text describing the available options. warn This warns with the usage message. die This throws the usage message as an exception. $usage_obj->die(\%arg); Some arguments can be provided pre_text - text to be prepended to the usage message post_text - text to be appended to the usage message The "pre_text" and "post_text" arguments are concatenated with the usage message with no line breaks, so supply this if you need them. AUTHORS
o Hans Dieter Pearcey <hdp@cpan.org> o Ricardo Signes <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2005 by Hans Dieter Pearcey. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-02-22 Getopt::Long::Descriptive::Usage(3pm)

Check Out this Related Man Page

MooseX::Getopt::ProcessedArgv(3pm)			User Contributed Perl Documentation			MooseX::Getopt::ProcessedArgv(3pm)

NAME
MooseX::Getopt::ProcessedArgv - MooseX::Getopt::ProcessedArgv - Class containing the results of process_argv VERSION
version 0.59 SYNOPSIS
use My::App; my $pa = My::App->process_argv(@params); my $argv_copy = $pa->argv_copy(); my $extra_argv = $pa->extra_argv(); my $usage = $pa->usage(); my $constructor_params = $pa->constructor_params(); my $cli_params = $pa->cli_params(); DESCRIPTION
This object contains the result of a "process_argv" in MooseX::Getopt call. It contains all the information that "new_with_options" in MooseX::Getopt uses when calling new. METHODS
argv_copy Reference to a copy of the original @ARGV array as it originally existed at the time of "new_with_options". extra_arg Arrayref of leftover @ARGV elements that Getopt::Long did not parse. usage Contains the Getopt::Long::Descriptive::Usage object (if Getopt::Long::Descriptive is used). constructor_params Parameters passed to process_argv. cli_param Command-line parameters parsed out of @ARGV. AUTHOR
Stevan Little <stevan@iinteractive.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Infinity Interactive, Inc. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.18.2 2013-11-30 MooseX::Getopt::ProcessedArgv(3pm)
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Usage in Unix

Hi, Please let me know how do we write a piece of code to find the disk usage in UNIX (3 Replies)
Discussion started by: Shilpi
3 Replies

2. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

3. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

4. Shell Programming and Scripting

Perl Getopt::Long question - stopping multiple args

Hi there, I have an example basic script (below) and ive been trying to figure out how to stop multiple arguments to my options occuring. for example using the example script below I can issue two arguments for, say the --surname option and it will not barf at me (although thats what i want it to... (11 Replies)
Discussion started by: rethink
11 Replies

5. Programming

Reading long options in C++ program

I am reading arguments passed to a C++ program which accepts long options. Long options start with '--', with the value joined with the option by an = sign, with no intervening spaces. An example is as follows: programName --vdz=15.0 I want to store 'vdz' in variable 'key', whereas... (4 Replies)
Discussion started by: kristinu
4 Replies

6. UNIX for Dummies Questions & Answers

Disk Usage

Hi, I have always felt problems using commands to check disk usage, or I should say I might not be using the commands properly. dfspace and free are 2 most frequent command that I use, but the data that it echoes is not comprehandable atleast to me.:wall::wall::wall::wall::wall: I want... (4 Replies)
Discussion started by: TH3M0Nk
4 Replies

7. HP-UX

Virtual Memory Usage a Process

Hi all, Is there any command which shows the virtual memory usage of a particular process in HP-UX machine. I have tried with ps, top but could not get what I want. Kindly provide me a solution. Thanks in Advance ARD (4 Replies)
Discussion started by: ard
4 Replies

8. Programming

Examples, usage, help in C++ program

I have written a C++ program to perform raytracing and would want to write some functions to help the user: examples, usage, help I am wondering how this is done. Would I just put some functions in the main program? (4 Replies)
Discussion started by: kristinu
4 Replies

9. UNIX for Dummies Questions & Answers

How to use a function?

I am trying to use a function in my script. I'm not quite sure how to complete it. This is my assignment: The first version of hw12.sh should display the usage message "usage: $0 argument", "Enter one or more arguments." when no arguments are on the command line. $ hw12.sh usage: hw12.sh... (3 Replies)
Discussion started by: Vitaly
3 Replies

10. Programming

Perl parse string

Hi Perl Guys I have another perl question I have the following code that i have written Getopt::Long::config(qw( permute bundling )); my $OPT = {}; GetOptions($OPT, qw( ver=s help|h )) or die "options parsing failed"; This will allow the user to do something like... (4 Replies)
Discussion started by: ab52
4 Replies

11. AIX

High CPU Usage , users affected

Dear All, One production Server is affected by high usage. Application is slow now. Please guide me how to solve it? NMON Report shows full cpu usage. Here im posting some server details. bash-3.2# lparstat -i Node Name : ********* Partition Name ... (6 Replies)
Discussion started by: Thala
6 Replies

12. Shell Programming and Scripting

Long.MAX_VALUE - System.currentTimeMillis()

How can i get Long.MAX_VALUE - System.currentTimeMillis() ( in Java ) In Unix. date %s is not the timpstamp in millis. Also is it possible if we can System.currentTimeMillis() equivalent of yesterday's 23:59:59 in millis ? (6 Replies)
Discussion started by: mohapatra
6 Replies

13. Programming

Curious About Offbeat "#" Usage in C . . .

Greetings! Being incredibly rusty in the little C which I ever knew, and, not knowing where else to turn but the best programming community on the web ( :) ), I submit the following snippet for a quick question:#if PERL_VERSION > 7 if (DEBUG_D_TEST) { SV* sva; ... (3 Replies)
Discussion started by: LinQ
3 Replies

14. SCO

Command to View Processor Usage

Hi everyone, i used to know the command to show current CPU usage but i cannot remember it. It was not "Top". Openserver 6. (4 Replies)
Discussion started by: Paulbas
4 Replies