From e1cf40fa9537162efe0dc19dcea9ae7d043fde66 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Feb 2014 16:34:24 +0100 Subject: nix-instantiate: Rename --eval-only to --eval, --parse-only to --parse --- doc/manual/nix-instantiate.xml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/manual') diff --git a/doc/manual/nix-instantiate.xml b/doc/manual/nix-instantiate.xml index a780302e1971..b388560a11f2 100644 --- a/doc/manual/nix-instantiate.xml +++ b/doc/manual/nix-instantiate.xml @@ -19,9 +19,9 @@ nix-instantiate - + - + @@ -84,7 +84,7 @@ input. - + Just parse the input files, and print their abstract syntax trees on standard output in ATerm @@ -92,7 +92,7 @@ input. - + Just parse and evaluate the input files, and print the resulting values on standard output. No instantiation of @@ -115,8 +115,8 @@ input. - When used with and - , print the resulting expression as an + When used with and + , print the resulting expression as an XML representation of the abstract syntax tree rather than as an ATerm. The schema is the same as that used by the toXML @@ -126,7 +126,7 @@ input. - When used with , + When used with , recursively evaluate list elements and attributes. Normally, such sub-expressions are left unevaluated (since the Nix expression language is lazy). @@ -140,9 +140,9 @@ input. - When used with , - perform evaluation in read/write mode so nix language features - that require it will still work (at the cost of needing to do + When used with , perform + evaluation in read/write mode so nix language features that + require it will still work (at the cost of needing to do instantiation of every evaluated derivation). @@ -195,13 +195,13 @@ $ nix-instantiate '<nixpkgs>' -A hello Parsing and evaluating Nix expressions: -$ nix-instantiate --parse-only -E '1 + 2' +$ nix-instantiate --parse -E '1 + 2' 1 + 2 -$ nix-instantiate --eval-only -E '1 + 2' +$ nix-instantiate --eval -E '1 + 2' 3 -$ nix-instantiate --eval-only --xml -E '1 + 2' +$ nix-instantiate --eval --xml -E '1 + 2' @@ -212,7 +212,7 @@ $ nix-instantiate --eval-only --xml -E '1 + 2' The difference between non-strict and strict evaluation: -$ nix-instantiate --eval-only --xml -E 'rec { x = "foo"; y = x; }' +$ nix-instantiate --eval --xml -E 'rec { x = "foo"; y = x; }' ... @@ -226,7 +226,7 @@ Note that y is left unevaluated (the XML representation doesn’t attempt to show non-normal forms). -$ nix-instantiate --eval-only --xml --strict -E 'rec { x = "foo"; y = x; }' +$ nix-instantiate --eval --xml --strict -E 'rec { x = "foo"; y = x; }' ... -- cgit 1.4.1