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:
Ayaz Hafiz 2022-05-05 09:04:34 -04:00
parent 7da8e9aedd
commit ef877364d4
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -157,7 +157,8 @@ pub fn build_app<'a>() -> Command<'a> {
Arg::new(DIRECTORY_OR_FILES)
.index(1)
.multiple_values(true)
.required(false))
.required(false)
.allow_invalid_utf8(true))
.arg(
Arg::new(FLAG_CHECK)
.long(FLAG_CHECK)