Skip to content

Commit

Permalink
[Docs] Explain that loader.argv must contain argv[0]
Browse files Browse the repository at this point in the history
Non-programming users do not know this quirk that `argv[0]` is typically
a program name, and that actual commandline arguments start with the
second item (`argv[1]`).

Signed-off-by: Dmitrii Kuvaiskii <dmitrii.kuvaiskii@intel.com>
  • Loading branch information
dimakuv committed Oct 16, 2023
1 parent d8d4344 commit c92355d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Documentation/manifest-syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ If you want your application to use commandline arguments, you must choose one
of the three mutually exclusive options:

- set ``loader.insecure__use_cmdline_argv`` (insecure in almost all cases),
- put commandline arguments into ``loader.argv`` array,
- put commandline arguments into ``loader.argv`` array (note that the first
argument is typically the program name and the actual arguments start with
the second array item; see `this link
<https://unix.stackexchange.com/questions/315812>`__ for an explanation),
- point ``loader.argv_src_file`` to a file
containing output of :ref:`gramine-argv-serializer<gramine-argv-serializer>`.

Expand Down

0 comments on commit c92355d

Please sign in to comment.