aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/src/help.rs
blob: 5bfe657343af9941766f0aa8c63471261839c3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pub fn print_global_help() {
    println!(
        "tasks

USAGE:
    ra_tools <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information

SUBCOMMANDS:
    format
    format-hook
    fuzz-tests
    gen-syntax
    gen-tests
    install-ra
    lint"
    )
}

pub fn print_install_ra_help() {
    println!(
        "ra_tools-install-ra

USAGE:
    ra_tools.exe install-ra [FLAGS]

FLAGS:
        --client-code
    -h, --help           Prints help information
        --jemalloc
        --server"
    )
}

pub fn print_no_param_subcommand_help(subcommand: &str) {
    println!(
        "ra_tools-{}

USAGE:
    ra_tools {}

FLAGS:
    -h, --help       Prints help information",
        subcommand, subcommand
    );
}

pub fn print_install_ra_conflict() {
    println!(
        "error: The argument `--server` cannot be used with `--client-code`
                    
For more information try --help"
    )
}