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:
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user