Lines
100 %
Functions
Branches
/*
* Hurl (https://hurl.dev)
* Copyright (C) 2024 Orange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by bin/spec/options/generate_source.py - Do not modify
pub fn input_files() -> clap::Arg {
clap::Arg::new("input_files")
.value_name("FILES")
.help("Set the input file to use")
.required(false)
.index(1)
.num_args(1..)
}
pub fn check() -> clap::Arg {
clap::Arg::new("check")
.long("check")
.help("Run in check mode")
.conflicts_with("output")
.action(clap::ArgAction::SetTrue)
pub fn color() -> clap::Arg {
clap::Arg::new("color")
.long("color")
.help("Colorize Output")
.conflicts_with("no_color")
.conflicts_with("in_place")
pub fn in_place() -> clap::Arg {
clap::Arg::new("in_place")
.long("in-place")
.help("Modify files in place")
.conflicts_with("color")
pub fn input_format() -> clap::Arg {
clap::Arg::new("input_format")
.long("in")
.value_name("FORMAT")
.default_value("hurl")
.help("Specify input format: hurl or curl")
.num_args(1)
pub fn no_color() -> clap::Arg {
clap::Arg::new("no_color")
.long("no-color")
.help("Do not colorize output")
pub fn output() -> clap::Arg {
clap::Arg::new("output")
.long("output")
.short('o')
.value_name("FILE")
.help("Write to FILE instead of stdout")
pub fn output_format() -> clap::Arg {
clap::Arg::new("output_format")
.long("out")
.help("Specify output format: hurl, json or html")
.conflicts_with("check")
pub fn standalone() -> clap::Arg {
clap::Arg::new("standalone")
.long("standalone")
.help("Standalone HTML")