Fix typos in --no-... option names in no-op warnings (#8143)

## Summary

When trying out standalone scripts I noticed a warning that said
`--no_readme` is a no-op when I provided `--no-readme`.

I searched for this "--\w+_" pattern in the codebase and found a similar
typo in warnings in other places, so I fixed them here.

## Test Plan


no plan, since these commands are mainly for interactive use I would
assume nobody parses out warnings about unnecessary options?
This commit is contained in:
Max Friedrich
2024-10-12 14:53:19 +02:00
committed by GitHub
parent b91bd29970
commit 8605259f3d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ pub(crate) async fn add(
}
if no_sync {
warn_user_once!(
"`--no_sync` is a no-op for Python scripts with inline metadata, which always run in isolation"
"`--no-sync` is a no-op for Python scripts with inline metadata, which always run in isolation"
);
}
+2 -2
View File
@@ -176,10 +176,10 @@ async fn init_script(
native_tls: bool,
) -> Result<()> {
if no_workspace {
warn_user_once!("`--no_workspace` is a no-op for Python scripts, which are standalone");
warn_user_once!("`--no-workspace` is a no-op for Python scripts, which are standalone");
}
if no_readme {
warn_user_once!("`--no_readme` is a no-op for Python scripts, which are standalone");
warn_user_once!("`--no-readme` is a no-op for Python scripts, which are standalone");
}
if author_from.is_some() {
warn_user_once!("`--author-from` is a no-op for Python scripts, which are standalone");
+1 -1
View File
@@ -61,7 +61,7 @@ pub(crate) async fn remove(
}
if no_sync {
warn_user_once!(
"`--no_sync` is a no-op for Python scripts with inline metadata, which always run in isolation"
"`--no-sync` is a no-op for Python scripts with inline metadata, which always run in isolation"
);
}
Target::Script(script)