From e418976107ed1581c108c82cd5b3b06c2f4ba9db Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 14 Jan 2007 12:32:44 +0000 Subject: * Option --argstr for passing string arguments easily. (NIX-75) --- src/libexpr/common-opts.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/libexpr/common-opts.hh (limited to 'src/libexpr/common-opts.hh') diff --git a/src/libexpr/common-opts.hh b/src/libexpr/common-opts.hh new file mode 100644 index 000000000000..fb9659cdc5a1 --- /dev/null +++ b/src/libexpr/common-opts.hh @@ -0,0 +1,17 @@ +#ifndef __COMMON_OPTS_H +#define __COMMON_OPTS_H + +#include "eval.hh" + + +namespace nix { + +/* Some common option parsing between nix-env and nix-instantiate. */ +bool parseOptionArg(const string & arg, Strings::iterator & i, + const Strings::iterator & argsEnd, EvalState & state, + ATermMap & autoArgs); + +} + + +#endif /* !__COMMON_OPTS_H */ -- cgit 1.4.1