Skip to content

Commit

Permalink
fix some more wording
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Jun 16, 2023
1 parent 11a1d6b commit 2954fbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn format_inner(contents: &[u8], _config: &Config) -> Vec<u8> {
for (span, shape) in flat.clone() {
if span.start > start {
trace!(
"Span didn't started on the beginning! span {0}, start: {1}",
"Span does not start at the beginning! span {0}, start: {1}",
span.start,
start
);
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::path::PathBuf;
pub mod config;
pub mod formatting;

/// format a file with Nushell code inplace
/// format a Nushell file inplace
pub fn format_single_file(file: &PathBuf, config: &Config) {
let contents = std::fs::read(file)
.unwrap_or_else(|_| panic!("something went wrong reading the file {}", file.display()));
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ enum ExitCode {
struct Cli {
#[arg(
required_unless_present("stdin"),
help = "one of more files you want to format in nu"
help = "one of more Nushell files you want to format"
)]
files: Vec<PathBuf>,
#[arg(
short,
long,
conflicts_with = "files",
help = "Format the code passed in stdin as a string."
help = "a string of Nushell directly given to the formatter"
)]
stdin: Option<String>,
#[arg(short, long, help = "The configuration file")]
#[arg(short, long, help = "the configuration file")]
config: Option<PathBuf>,
}

Expand Down

0 comments on commit 2954fbf

Please sign in to comment.