In https://github.com/cloudius-systems/osv/issues/819 is asked for
supporting --env in scripts, as a way to pass input parameters to the
to be started program. Nadav suggested that parse_options could be reused.

The first commit splits parse_options into two functinos (parse + apply part),
so that parse part can be resued on other places. This is then reused in
second commit in runscript to allow "--env=key=value /my_program.so".

Justin Cinkelj (2):
  command line: split parse_options into reusable parts
  command line: allow --env in runscript

 core/commands.cc      | 39 +++++++++++++++++++++++++++++
 loader.cc             | 68 +++++++++++++++++++++++++++++++++++++--------------
 tests/tst-commands.cc | 52 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 141 insertions(+), 18 deletions(-)

-- 
2.9.3

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to