mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Allow invalid UTF-8 for roc format
argument
Presumably with a new version of clap that was introduced, we must now specify that invalid-utf8 is permitted in order to run `matches.values_of_os` as we do on line 174 of cli/src/main.rs: ```rust Some((CMD_FORMAT, matches)) => { let maybe_values = matches.values_of_os(DIRECTORY_OR_FILES); ``` Otherwise, clap panics: ``` thread 'main' panicked at 'Must use `Arg::allow_invalid_utf8` with `_os` lookups at `DIRECTORY_OR_FILES`', cli/src/main.rs:174:40 ```
This commit is contained in:
parent
7da8e9aedd
commit
ef877364d4
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ pub fn build_app<'a>() -> Command<'a> {
|
||||||
Arg::new(DIRECTORY_OR_FILES)
|
Arg::new(DIRECTORY_OR_FILES)
|
||||||
.index(1)
|
.index(1)
|
||||||
.multiple_values(true)
|
.multiple_values(true)
|
||||||
.required(false))
|
.required(false)
|
||||||
|
.allow_invalid_utf8(true))
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(FLAG_CHECK)
|
Arg::new(FLAG_CHECK)
|
||||||
.long(FLAG_CHECK)
|
.long(FLAG_CHECK)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue