1
/*
2
 * Hurl (https://hurl.dev)
3
 * Copyright (C) 2025 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
213
pub fn input_files() -> clap::Arg {
21
213
    clap::Arg::new("input_files")
22
213
        .value_name("FILES")
23
213
        .help("Set the input file to use")
24
213
        .required(false)
25
213
        .index(1)
26
213
        .num_args(1..)
27
}
28

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

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

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

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

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

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

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

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