1
/*
2
 * Hurl (https://hurl.dev)
3
 * Copyright (C) 2026 Orange
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License");
6
 * you may not use this file except in compliance with the License.
7
 * You may obtain a copy of the License at
8
 *
9
 *          http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 *
17
 */
18
// Generated by bin/spec/options/generate_source.py - Do not modify
19

            
20
144
pub fn input_files() -> clap::Arg {
21
144
    clap::Arg::new("input_files")
22
144
        .value_name("FILES")
23
144
        .help("Set the input file to use")
24
144
        .required(false)
25
144
        .index(1)
26
144
        .num_args(1..)
27
}
28

            
29
144
pub fn check() -> clap::Arg {
30
144
    clap::Arg::new("check")
31
144
        .long("check")
32
144
        .help("Run in check mode")
33
144
        .conflicts_with("output")
34
144
        .action(clap::ArgAction::SetTrue)
35
}
36

            
37
144
pub fn color() -> clap::Arg {
38
144
    clap::Arg::new("color")
39
144
        .long("color")
40
144
        .help("Colorize Output")
41
144
        .conflicts_with("no_color")
42
144
        .conflicts_with("in_place")
43
144
        .action(clap::ArgAction::SetTrue)
44
}
45

            
46
144
pub fn in_place() -> clap::Arg {
47
144
    clap::Arg::new("in_place")
48
144
        .long("in-place")
49
144
        .help("Modify files in place")
50
144
        .conflicts_with("output")
51
144
        .conflicts_with("color")
52
144
        .action(clap::ArgAction::SetTrue)
53
}
54

            
55
144
pub fn input_format() -> clap::Arg {
56
144
    clap::Arg::new("input_format")
57
144
        .long("in")
58
144
        .value_name("FORMAT")
59
144
        .help("Specify input format: hurl or curl [default: hurl]")
60
144
        .num_args(1)
61
}
62

            
63
144
pub fn no_color() -> clap::Arg {
64
144
    clap::Arg::new("no_color")
65
144
        .long("no-color")
66
144
        .help("Do not colorize output")
67
144
        .conflicts_with("color")
68
144
        .action(clap::ArgAction::SetTrue)
69
}
70

            
71
144
pub fn output() -> clap::Arg {
72
144
    clap::Arg::new("output")
73
144
        .long("output")
74
144
        .short('o')
75
144
        .value_name("FILE")
76
144
        .help("Write to FILE instead of stdout")
77
144
        .num_args(1)
78
}
79

            
80
144
pub fn output_format() -> clap::Arg {
81
144
    clap::Arg::new("output_format")
82
144
        .long("out")
83
144
        .value_name("FORMAT")
84
144
        .help("Specify output format: hurl, json or html [default: hurl]")
85
144
        .conflicts_with("check")
86
144
        .num_args(1)
87
}
88

            
89
144
pub fn standalone() -> clap::Arg {
90
144
    clap::Arg::new("standalone")
91
144
        .long("standalone")
92
144
        .help("Standalone HTML")
93
144
        .conflicts_with("no_color")
94
144
        .action(clap::ArgAction::SetTrue)
95
}