Gri: Filename arguments when running gri

Chapters: 1: Introduction 2: Simple example 3: Invocation 4: Finer Control 5: X-Y Plots 6: Contour Plots 7: Image Plots 8: Examples 9: Gri Commands 10: Programming 11: Environment 12: Emacs Mode 13: History 14: Installation 15: Gri Bugs 16: Test Suite 17: Gri in Press 18: Acknowledgments 19: License Indices: Concepts Commands Variables | ## 12.7: Filename arguments when running gri Usually, gri is run specifying only a gri command file to process, which lends itself well to the gri-mode command ``gri-run`'. But Gri can be also invoked from the command line using optional arguments, usually filenames but not necessarily, e.g.
    $ gri somefile.gri datafile.dat datafile2.dat ...
or
    $ gri somefile.gri *.dat
The arguments are accessed with RPN operators ``argc`' and ``argv`' (see Unary Operators). gri-mode provides a method to set the arguments (usually filenames) to use when ``gri-run`' is called in a specific gri script. Use the gri-mode command ``gri-set-command-postarguments`' to setup a string that gri-mode will use, and the gri-mode command ``gri-unset-command-postarguments`' to clear it. For ease-of-use, these commands are made available from the menubar under the ``Perform -> Run Settings`' entries. The specified string will be stored in the locally-defined (aka buffer-local) variable ``gri-command-postarguments`' and will be written within a gri comment at the bottom of the file such that Emacs remembers it across editing sessions.