"
Available unstable (nightly-only) flags:
- -Z avoid-dev-deps -- Avoid installing dev-dependencies if possible
- -Z minimal-versions -- Install minimal dependency versions instead of maximum
- -Z no-index-update -- Do not update the registry, avoids a network request for benchmarking
- -Z offline -- Offline mode that does not perform network requests
- -Z print-im-a-teapot -- Example option for demonstration purposes
- -Z unstable-options -- Allow the usage of unstable options such as --registry
+ -Z avoid-dev-deps -- Avoid installing dev-dependencies if possible
+ -Z minimal-versions -- Install minimal dependency versions instead of maximum
+ -Z no-index-update -- Do not update the registry, avoids a network request for benchmarking
+ -Z offline -- Offline mode that does not perform network requests
+ -Z unstable-options -- Allow the usage of unstable options such as --registry
Run with 'cargo -Z [FLAG] [SUBCOMMAND]'"
);
),
);
}
+
+// Test that the output of 'cargo -Z help' shows a different help screen with
+// all the -Z flags.
+#[test]
+fn z_flags_help() {
+ assert_that(
+ cargo_process().arg("-Z").arg("help"),
+ execs()
+ .with_status(0)
+ .with_stdout_contains("-Z unstable-options"),
+ );
+}