From 9a9dc7f0472fa97ca90733c087bc532d7ebfb95f Mon Sep 17 00:00:00 2001
From: arctic-alpaca <67190338+arctic-alpaca@users.noreply.github.com>
Date: Fri, 13 Jan 2023 12:34:12 +0100
Subject: [PATCH] Add nightly hint to xtask toolchain parameter

---
 README.md               | 2 +-
 xtask/src/build_ebpf.rs | 2 +-
 xtask/src/run.rs        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index f3e5816..86867c5 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ cargo xtask build-ebpf
 
 To perform a release build you can use the `--release` flag.
 You may also change the target architecture with the `--target` flag.
-If you require a specific (nightly) version of the toolchain, you can use the `--toolchain` flag.
+If you require a specific version of the toolchain, you can use the `--toolchain` flag (only nightly toolchains are supported).
 
 ## Build Userspace
 
diff --git a/xtask/src/build_ebpf.rs b/xtask/src/build_ebpf.rs
index ac14e99..4eb1282 100644
--- a/xtask/src/build_ebpf.rs
+++ b/xtask/src/build_ebpf.rs
@@ -34,7 +34,7 @@ pub struct Options {
     /// Set the endianness of the BPF target
     #[clap(default_value = "bpfel-unknown-none", long)]
     pub target: Architecture,
-    /// Set the rust toolchain
+    /// Set the rust toolchain (only nightly toolchains are supported)
     #[clap(default_value = "+nightly", long)]
     pub toolchain: String,
     /// Build the release target
diff --git a/xtask/src/run.rs b/xtask/src/run.rs
index 10bde90..ca4279e 100644
--- a/xtask/src/run.rs
+++ b/xtask/src/run.rs
@@ -19,7 +19,7 @@ pub struct Options {
     /// Arguments to pass to your application
     #[clap(name = "args", last = true)]
     pub run_args: Vec<String>,
-    /// Set the rust toolchain
+    /// Set the rust toolchain (only nightly toolchains are supported)
     #[clap(default_value = "+nightly", long)]
     pub toolchain: String,
 }