aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-02-07 20:44:56 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-02-07 20:44:56 +0100
commit37352aa7e19e0bfebbd0c32985cbf79a83508538 (patch)
treea3c5086e8ad1945a37a233f1d759cb37f1715efc /src/nix/main.cc
parent480426a364f09e7992230b32f2941a09fb52d729 (diff)
Support --no-net for backwards compatibility
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index e95b04d85..ef5e41a55 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -92,6 +92,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
addFlag({
.longName = "offline",
+ .aliases = {"no-net"}, // FIXME: remove
.description = "Disable substituters and consider all previously downloaded files up-to-date.",
.handler = {[&]() { useNet = false; }},
});