Browse Source

docs: rename to getopt-example

Addresses: 27114b2974 (commitcomment-43591002)
Signed-off-by: Karel Zak <kzak@redhat.com>
pull/1174/head
Karel Zak 2 years ago
parent
commit
1ab5f9b705
  1. 4
      misc-utils/getopt-example.bash
  2. 4
      misc-utils/getopt-example.tcsh
  3. 2
      tests/ts/getopt/basic

4
misc-utils/getopt-example.bash

@ -3,11 +3,11 @@
# A small example script for using the getopt(1) program.
# This script will only work with bash(1).
# A similar script using the tcsh(1) language can be found
# as getopt-parse.tcsh.
# as getopt-example.tcsh.
# Example input and output (from the bash prompt):
#
# ./getopt-parse.bash -a par1 'another arg' --c-long 'wow!*\?' -cmore -b " very long "
# ./getopt-example.bash -a par1 'another arg' --c-long 'wow!*\?' -cmore -b " very long "
# Option a
# Option c, no argument
# Option c, argument 'more'

4
misc-utils/getopt-example.tcsh

@ -3,10 +3,10 @@
# A small example script for using the getopt(1) program.
# This script will only work with tcsh(1).
# A similar script using the bash(1) language can be found
# as getopt-parse.bash.
# as getopt-example.bash.
# Example input and output (from the tcsh prompt):
# ./parse.tcsh -a par1 'another arg' --c-long 'wow\!*\?' -cmore -b " very long "
# ./getopt-example.tcsh -a par1 'another arg' --c-long 'wow\!*\?' -cmore -b " very long "
# Option a
# Option c, no argument
# Option c, argument `more'

2
tests/ts/getopt/basic

@ -12,7 +12,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This test script is modified version of 'getopt-parse.bash' example
# This test script is modified version of 'getopt-example.bash' example
# file in misc/ directory.
TS_TOPDIR="${0%/*}/../.."

Loading…
Cancel
Save