@@ -11,7 +11,6 @@ use std::path::PathBuf;
11
11
12
12
#[ derive( Clone , Debug , Parser ) ]
13
13
#[ clap( author, version, about) ]
14
- #[ clap( arg_required_else_help = true ) ]
15
14
pub struct Ferium {
16
15
#[ clap( subcommand) ]
17
16
pub subcommand : SubCommands ,
@@ -23,12 +22,10 @@ pub struct Ferium {
23
22
#[ clap( long, short = 'p' , default_value_t = DEFAULT_PARALLEL_NETWORK ) ]
24
23
pub parallel_network : usize ,
25
24
/// Set a GitHub personal access token for increasing the GitHub API rate limit.
26
- /// You can also use the environment variable `GITHUB_TOKEN`.
27
- #[ clap( long, visible_alias = "gh" ) ]
25
+ #[ clap( long, visible_alias = "gh" , env = "GITHUB_TOKEN" ) ]
28
26
pub github_token : Option < String > ,
29
27
/// Set a custom Curseforge API key.
30
- /// You can also use the environment variable `CURSEFORGE_API_KEY`.
31
- #[ clap( long, visible_alias = "cf" ) ]
28
+ #[ clap( long, visible_alias = "cf" , env = "CURSEFORGE_API_KEY" ) ]
32
29
pub curseforge_api_key : Option < String > ,
33
30
/// Set the file to read the config from.
34
31
/// This does not change the `cache` and `tmp` directories.
0 commit comments