Function jsonl_converter::cli::parse_args
source · pub fn parse_args() -> (String, bool)
Expand description
Returns the filepath from the command line arguments assuming that the filepath is the first argument.
Optionally, a --messy
flag can be provided to indicate that the JSONL
file is not well formed. This is useful if the JSONL file contains
multiple JSON objects on a single line.
Returns
- The filepath from the command line arguments.
- A boolean indicating whether the JSONL file is not well formed.
Panics
- If the filepath is not provided.