--------------------
1  Overall Structure
--------------------

- A sample command might look like this:

begin command
	name		map2d
	help		help for map2d
	file		5

	begin required
	 .
	 .
	end required

	begin option -d
	 .
	 .
	end option
end command

Notes:

- Script is parsed one line at a time.
- Mandatory "name" takes a command name.
- Optional "flag" may be off(no command line) or display(non-editable line).
- Optional "help" may be repeated for long descriptions.  
- Optional "file" specifies the number of entries in the file lister.
  Default is 5.
- Keywords may contain upper or lower case letters.  
- Special characters such as '\n' and '\t' are not supported.
- If '#' is the first letter of a line, the rest of the line is ignored.


-------------------------
2  Structure of Arguments
-------------------------

- Here are sample arguments.

	begin required
		type		file
		label		file name
		default		$HOME/foo.pic
	end required

	begin option -d
		type		toggle
		label		debug
	end option

Notes:

- Required arguments must precede optional ones.
  Required arguments must have a default. 
  Required arguments cannot have option strings such as "-a" or "-d".
- Optional arguments must have option strings.
- Mandatory "label" briefly describes an argument. 
- Mandatory "type" can be one of toggle, integer, float, menu, string,
	object, and file.
- Mandatory fields must precede optional fields.


-----------------
3  Argument Types
-----------------

3.1  Toggle
-----------

- Toggle cannot be a required argument.
- Toggle turns an option string on and off.
- There is no extra field associated with toggle.


3.2  Integer And Float
----------------------

- A float example.

	begin option -c
		type		float
		label		x, y, z
		repeat		3
		columns		3
		default		0.0
		max		@1.0
		min		-1.0
	end option

- User would type:  -c 0.5 -0.72 0.6

Notes:

- Float shows 3 significant digits.
- Optional "repeat" specifies the number of integer or float values.
  Default is 1.
- Optional "columns" specifies the number of columns.
  Default is 1.
- There may be more than one default if the repeat value more than one.
- If max and min is specified, a horizontal scrollbar will be displayed.
  '@' before max or min values allow users to modify these values.
  You cannot have a space between '@' and a value.


3.3  Menu
---------

- A menu example.

	begin option -c
		type		menu
		label		color
		title		text color
		items		black, white, red, "half white", "", green
		items		blue, yellow
	end option

Notes:

- Optional "title" is the menu title.
- Optional "items" are the items in a menu.
- Use quotes for an item having more than one word.
- "" separates items with a bar between them.
  " " can be used for a blank item.


3.4  File
---------

- There is no extra field for this argument.  The user may yank the selected
	file from the file lister at the top of the dialog box.

3.5  String
-----------

- There is no extra field for this argument.

3.6  Object, Time Mark
----------------------

- There is no extra field for this argument.  The user may select an object
	or time mark which already exist in Action by using a menu.

An object example:
	begin option -s
		type	object
		label	Object
		default	geo1
	end option

A timemark example:
	begin option -n
		type	timemark
		label	Time Mark
		default	TStart
	end option

3.7  Menu String
----------------

- This is a string which also has a menu button of default values to stuff
	in the string.  All options for menu and string types are used.

An example:
	begin required
		type	menustring
		label	Output Image
		default	iw
		title	Output Images
		items	iw, ip, $JOB/Pic/$F.pic.Z
	end required


---------------
4  Improvements
---------------

- Argument types such as ?????? should be supported.

-------------------------------
5  Additions to original syntax
-------------------------------

- Each command may have a default which is used to initialize the options.
	This default allows specification of optional arguments.
- begin "separate" was added to allow a separator line.  The separate option
	must be of "string" type.  The label is unused, but the default
	value is displayed.  This option has no effect on the construction
	of the command, and the user cannot modify the value.
- a label field was added to the command structure.  The label is what
	appears in the menu instead of the command name.  This can be
	used for clarity of the scripts.
- option types for "object" and "timemark" were added.
- added option type "menustring" which adds on a menu for stuffing values
	into the string with.
