CVRTOPT(1G) COMMAND REFERENCE CVRTOPT(1G)
NAME
cvrtopt - options converter
SYNOPSIS
cvrtopt [ -fstring ] [ -istring ] [ -sstring ] [ -tstring ]
[ arg ... ]
DESCRIPTION
Cvrtopt reformats args (usually the command line arguments
of a calling shell procedure) to facilitate processing by
shell procedures. An arg is either a filename (a string not
beginning with a '-', or a '-' by itself) or an option
string (a string of options beginning with a '-'). Output
is of the form:
-option -option . . . filename(s)
All options appear singularly and preceding any filenames.
Option names that take values (e.g., -r1.1) or are two
letters long must be described through options to cvrtopt.
Output is to the standard output.
Cvrtopt is usually used with set(1sh) in the following
manner as the first line of a shell script:
set - `cvrtopt [=option(s)] $@`
Set resets the command argument string ($1,$2,...) to the
output of cvrtopt. The minus option to set turns off all
flags so that the options produced by cvrtopt are not
interpreted as options to set.
OPTIONS
-fstring
String accepts floating point numbers as values.
-istring
String accepts integers as values.
-sstring
String accepts string values.
-tstring
String is a two letter option name that takes no value.
Each string is a one or two letter option name.
EXAMPLES
The following example outputs -c1 -x -y -ofile -r1.1e3 -xi A
- B
Printed 10/17/86 1
CVRTOPT(1G) COMMAND REFERENCE CVRTOPT(1G)
cvrtopt =ic,so,txi,fr -c1 -x,y,ofile A - B -r1.1e3,xi
SEE ALSO
abs(1g), af(1g), bar(1g), bel(1g), bucket(1g), ceil(1g),
cor(1g), cusum(1g), dtoc(1g), erase(1g), exp(1g), floor(1g),
gamma(1g), gas(1g), gd(1g), ged(1g), getopt(1),
graphics(1g), gtop(1g), hardcopy(1g), hilo(1g), hist(1g),
hpd(1g), intro(1g), label(1g), list(1g), log(1g), lreg(1g),
mean(1g), mod(1g), pair(1g), pd(1g), pie(1g), plot(1g),
point(1g), power(1g), prime(1g), prod(1g), ptog(1g),
qsort(1g), quit(1g), rand(1g), rank(1g), remcom(1g),
root(1g), round(1g), set(1sh), sh(1sh), siline(1g), sin(1g),
subset(1g), td(1g), tekset(1g), title(1g), total(1g),
ttoc(1g), var(1g), vtoc(1g), whatis(1g), yoo(1g), getopt(3),
and gps(5g).
Printed 10/17/86 2
%%index%%
na:72,63;
sy:135,284;
de:419,1387;
op:1806,526;
ex:2332,290;2766,65;
se:2831,1549;
%%index%%000000000116