/*
 * message text for forall.c
 *
 */

#ifndef messages_c
#define messages_c

static char *help_message[] = {
	"Forall searches a directory tree looking for files that match the ",
	"requested specification, and executes the specified command for each ",
	"match found.",
	"",
	"Options available are:",
	"    -Path <path_spec>    : search this path/driectory",
	"    -File <file_spec>    : match this (wildcarded) filename",
	"    -Type <file_type>    : only match these filetypes (see below)",
	"    -IMages              : treat image files as directories*",
	"    -Recurse             : recurse into subdirectories",
	"    -Silent              : don't echo commands before executing them",
	"    -Noexecute           : only echo commands (turns -silent off)",
	"    -Verbose             : display information on what's happening",
	"    -IGnore              : ignore errors when executing commands",
	"    -OBey <file_spec>    : output an obey file of the commands",
	"    -OScli               : use OS_CLI to execute commands",
	"    -Command <comm_spec> : the command to execute (see below)",
	"All options may be abbreviated (min. abbr. in uppercase above).",
	"Path defaults to '@', File to '*'.",
	"* Image files only exist under RISC OS 3",
	"",
	"After a -Type switch, you may specify as many filetypes as you like, ",
	"either as 3 digit hex numbers (eg. fff) or as textual names (eg. ",
	"drawfile).",
	"Prefixing a type name/number with ~ means do NOT match this type.",
	"The type name 'untyped' matches untyped files.",
	"By default, all typed files are matched (ie. -Type ~untyped).",
	"",
	"The command may be anything *valid* that you like and can include spaces.",
	"Within the command spec. the following sequences have special meanings:",
	"    %o  : the full name of the matched file (ie. %p.%f)",
	"    %p  : the path name of the matched file WITHOUT a trailing .",
	"    %d  : the leaf name of the directory containing the file",
	"    %f  : the filename of  the matched file",
	"    %%  : a % character",
	"NB: the -command *must* be the last switch on the command line",
	"as everything after it is taken to be the command spec. even if it",
	"was intended as a switch to forall.",
	"",
	"Note that forall finds all matching files before executing anything",
	"so it is safe to use a command that modifies the directory tree",
	"(eg. delete or rename, etc).",
	"NB: -obey does *not* imply -noexecute;",
	"NB: you can only use -oscli for commands that don't run programs",
	"(trasnient utilities [filetype &ffc) are OK though).",

	0
};


static char *syntax_message[] = {
"Syntax: *ForAll [-Path <path_spec>] [-File <file_spec>] [-Type {type_spec}]",
"                [-Recurse] [-Silent] [-NoExecute] [-IMages] [-Verbose]",
"                [-IGnore] [-OBey <file_spec>] [-OScli] -Command <comm_spec>",
"*Forall -Help for help",
0
};


#endif
