@@ -15,14 +15,17 @@ fn main() {
15
15
16
16
// check_version warnings are not printed during setup
17
17
let changelog_suggestion =
18
- if matches ! ( config. cmd, Subcommand :: Setup { .. } ) { None } else { check_version ( & config) } ;
18
+ if matches ! ( config. cmd, Subcommand :: Setup { .. } ) { None } else { check_version ( & config) } ;
19
19
20
20
// NOTE: Since `./configure` generates a `config.toml`, distro maintainers will see the
21
21
// changelog warning, not the `x.py setup` message.
22
22
let suggest_setup = !config. config . exists ( ) && !matches ! ( config. cmd, Subcommand :: Setup { .. } ) ;
23
23
if suggest_setup {
24
24
println ! ( "warning: you have not made a `config.toml`" ) ;
25
- println ! ( "help: consider running `x.py setup` or copying `config.toml.example`" ) ;
25
+ println ! (
26
+ "help: consider running `./x.py setup` or copying `config.toml.example` by running \
27
+ `cp config.toml.example config.toml`"
28
+ ) ;
26
29
} else if let Some ( suggestion) = & changelog_suggestion {
27
30
println ! ( "{}" , suggestion) ;
28
31
}
@@ -31,7 +34,10 @@ fn main() {
31
34
32
35
if suggest_setup {
33
36
println ! ( "warning: you have not made a `config.toml`" ) ;
34
- println ! ( "help: consider running `x.py setup` or copying `config.toml.example`" ) ;
37
+ println ! (
38
+ "help: consider running `./x.py setup` or copying `config.toml.example` by running \
39
+ `cp config.toml.example config.toml`"
40
+ ) ;
35
41
} else if let Some ( suggestion) = & changelog_suggestion {
36
42
println ! ( "{}" , suggestion) ;
37
43
}
0 commit comments