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
#[derive(Debug, clap::Parser)]
#[command(author, version, about)]
pub struct CliArgs {
/// What ReShader should do
#[clap(subcommand)]
pub subcommand: Option<SubCommand>,
/// Use a specific ReShade installer at this path
#[arg(short, long)]
pub use_installer: Option<String>,
}
#[derive(Debug, clap::Subcommand)]
pub enum SubCommand {
/// Install ReShade for a game
///
/// If use_installer is specified, the arguments for version and vanilla are ignored
InstallReshade {
/// Install a version of ReShade that has no support for addons
#[arg(long)]
vanilla: bool,
/// Install a specific version of ReShade (default: latest)
#[arg(short, long)]
version: Option<String>,
/// Install the ReShade library for this game. If this isn't set, the installer will only download ReShade.
#[arg(short, long)]
game: Option<String>,
},
/// Install ReShade shaders for a game
InstallReshadeShaders {
/// Install the ReShade library for this game. If this isn't set, the installer will only download ReShade.
#[arg(short, long)]
game: Option<String>,
},
/// Install GShade presets and shaders for a game. If no game is specified and all is not set, the presets and shaders will only be downloaded.
InstallPresets {
/// Install the presets and shaders for all games
#[arg(short, long)]
all: bool,
/// Install the presets and shaders for a specific game (if all is specified, this argument is ignored)
#[arg(short, long)]
game: Option<String>,
/// Location of the GShade presets zip file
#[arg(short, long, required = true)]
presets: String,
/// Location of the GShade shaders zip file
#[arg(short, long, required = true)]
shaders: String,
},
/// Uninstall ReShade or GShade from a game
Uninstall {
/// Uninstall from this game
#[arg(short, long)]
game: String,
},
}