mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
Convert parse_option to sh, use Perl instead of awk, implement --help.
This commit is contained in:
30
t/lib/samples/bash/help001.txt
Normal file
30
t/lib/samples/bash/help001.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
Usage: pt-stalk [OPTIONS] [-- MYSQL_OPTIONS]
|
||||
|
||||
For more information, 'man pt-stalk' or 'perldoc /Users/daniel/p/bash-tool-libs/t/lib/samples/bash/po001.sh'.
|
||||
|
||||
Command line options:
|
||||
|
||||
--help
|
||||
Print help and exit.
|
||||
|
||||
--int-opt
|
||||
Int option without a default.
|
||||
|
||||
--int-opt2
|
||||
Int option with a default.
|
||||
|
||||
--noption
|
||||
Negatable option.
|
||||
|
||||
--string-opt
|
||||
String option without a default.
|
||||
|
||||
--string-opt2
|
||||
String option with a default.
|
||||
|
||||
--typeless-option
|
||||
Just an option.
|
||||
|
||||
--version
|
||||
Print tool's version and exit.
|
||||
|
@@ -110,11 +110,13 @@ Just an option.
|
||||
|
||||
default: yes; negatable: yes
|
||||
|
||||
Negatable option.
|
||||
|
||||
=item --int-opt
|
||||
|
||||
type: int
|
||||
|
||||
Int option without a default
|
||||
Int option without a default.
|
||||
|
||||
=item --int-opt2
|
||||
|
||||
@@ -128,6 +130,10 @@ short form: -v
|
||||
|
||||
Print tool's version and exit.
|
||||
|
||||
=item --help
|
||||
|
||||
Print help and exit.
|
||||
|
||||
=back
|
||||
|
||||
=head1 ENVIRONMENT
|
||||
|
Reference in New Issue
Block a user