next up previous contents index
Next: System's macros Up: Module's header Previous: Use of variable and   Contents   Index


System's options

The options defined in the header's module (see section 4.2) are called user's options since they are defined by the user. You may notice that one letter only is used to select a user's option in the command line.

In addition to user's options, there exist other options called system's options since they are defined by MegaWave2 and always available. System's options use more than one letter, therefore no confusion can be made.

Here is the list of all available system's options:

-debug actives the debugging mode that is, the print of the function mwdebug (see the Volume two for a description of this function).

-fsum prints the module's function summary as given in the Volume three: ``MegaWave2 User's Modules Library'', and exits. This recalls the user the parameters needed to call the module from another module.

-ftype "file type" allows to overwrite the default file type for the MegaWave2 outputs. By default, MegaWave2 selects the same file type than the one of the inputs (if the internal input type matches the internal output type) or the file type which it considers to be the ``most common''. Using this option, you force MegaWave2 to write files having the type given in the string (file types are given in the Volume two: ``MegaWave2 System Library'' ). Do not use this option in case of several outputs with incompatible types. On some file types, option(s) may be added. Option mark is ':'. For example, JFIFC:80 means JPEG/JFIFC file format with the option 80 (quality factor).

-help prints a short help for the module and exits.

-proto prints the module's function prototype as to be included in a C source file, and exits.

-verbose active the verbose mode that is, the print of all functions writting on the standard output STDOUT or on the standard error STDERR. Indeed, these outputs may be redirected using the shell variables MW_STDOUT and MW_STDERR (see section 2.2.1 page [*]). The verbose switch allows to suppress the redirection for only the current module.

-vers prints the module's version number and exits.


next up previous contents index
Next: System's macros Up: Module's header Previous: Use of variable and   Contents   Index
mw 2004-05-05