Skip to content

Commit ad59a5c

Browse files
Koenraad VerheydenJoshua Nelson
authored andcommitted
cratesfyi.rs: improve formatting
1 parent 4023a53 commit ad59a5c

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

src/bin/cratesfyi.rs

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,16 @@ pub fn main() {
3737
.arg(Arg::with_name("SKIP_IF_EXISTS")
3838
.short("s")
3939
.long("skip")
40-
.help("Skips building documentation if \
41-
documentation exists"))
40+
.help("Skips building documentation if documentation exists"))
4241
.arg(Arg::with_name("SKIP_IF_LOG_EXISTS")
4342
.long("skip-if-log-exists")
44-
.help("Skips building documentation if build \
45-
log exists"))
43+
.help("Skips building documentation if build log exists"))
4644
.arg(Arg::with_name("KEEP_BUILD_DIRECTORY")
4745
.short("-k")
4846
.long("keep-build-directory")
4947
.help("Keeps build directory after build."))
50-
.subcommand(SubCommand::with_name("world").about("Builds documentation of every \
51-
crate"))
48+
.subcommand(SubCommand::with_name("world")
49+
.about("Builds documentation of every crate"))
5250
.subcommand(SubCommand::with_name("crate")
5351
.about("Builds documentation for a crate")
5452
.arg(Arg::with_name("CRATE_NAME")
@@ -72,19 +70,19 @@ pub fn main() {
7270
.help("update toolchain only if no toolchain is currently installed")))
7371
.subcommand(SubCommand::with_name("add-essential-files")
7472
.about("Adds essential files for the installed version of rustc"))
75-
.subcommand(SubCommand::with_name("lock").about("Locks cratesfyi daemon to stop \
76-
building new crates"))
73+
.subcommand(SubCommand::with_name("lock")
74+
.about("Locks cratesfyi daemon to stop building new crates"))
7775
.subcommand(SubCommand::with_name("unlock")
78-
.about("Unlocks cratesfyi daemon to continue \
79-
building new crates"))
76+
.about("Unlocks cratesfyi daemon to continue building new crates"))
8077
.subcommand(SubCommand::with_name("print-options")))
8178
.subcommand(SubCommand::with_name("start-web-server")
8279
.about("Starts web server")
8380
.arg(Arg::with_name("SOCKET_ADDR")
8481
.index(1)
8582
.required(false)
8683
.help("Socket address to listen to")))
87-
.subcommand(SubCommand::with_name("daemon").about("Starts cratesfyi daemon")
84+
.subcommand(SubCommand::with_name("daemon")
85+
.about("Starts cratesfyi daemon")
8886
.arg(Arg::with_name("FOREGROUND")
8987
.short("-f")
9088
.long("foreground")
@@ -102,15 +100,12 @@ pub fn main() {
102100
.arg(Arg::with_name("DIRECTORY")
103101
.index(1)
104102
.required(true)
105-
.help("Path of file or \
106-
directory"))
103+
.help("Path of file or directory"))
107104
.arg(Arg::with_name("PREFIX")
108105
.index(2)
109-
.help("Prefix of files in \
110-
database")))
106+
.help("Prefix of files in database")))
111107
.subcommand(SubCommand::with_name("update-release-activity")
112-
.about("Updates montly release activity \
113-
chart"))
108+
.about("Updates monthly release activity chart"))
114109
.subcommand(SubCommand::with_name("update-search-index")
115110
.about("Updates search index"))
116111
.subcommand(SubCommand::with_name("delete-crate")

0 commit comments

Comments
 (0)