Skip to content

Commit 385a80e

Browse files
committed
consistent caps for helptext, add cpu arch to release "nice names"
1 parent fb04daa commit 385a80e

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ matrix:
1616
# GNU and MUSL are interchangeable for our purposes, but MUSL is
1717
# purportedly safer and has a smaller memory footprint. This program
1818
# is I/O-bound, so speed isn't really a factor, so we'll use MUSL.
19-
- env: TARGET=x86_64-unknown-linux-musl TARGET_NICE=linux
19+
- env: TARGET=x86_64-unknown-linux-musl TARGET_NICE=linux_x86_64
2020
# - env: TARGET=x86_64-unknown-linux-gnu TARGET_NICE=gnu-linux
2121

2222
# OSX
23-
- env: TARGET=x86_64-apple-darwin TARGET_NICE=mac
23+
- env: TARGET=x86_64-apple-darwin TARGET_NICE=mac_x86_64
2424
os: osx
2525

2626
before_install:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111
# don't need
1212
matrix:
1313
- TARGET: x86_64-pc-windows-gnu
14-
TARGET_NICE: windows
14+
TARGET_NICE: windows_x86_64
1515

1616
# MSVC is the dynamically-linked version, and requires you to have visual studio installed.
1717
# The resulting executable is smaller, but less portable.

src/config.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,46 +62,45 @@ impl ClientConfig {
6262
{
6363
let app = App::new("codedx-client")
6464
.version("0.1.0")
65-
.author("Dylan H <DylanH@codedx.com>")
6665
.about("CLI client for the Code Dx REST API")
6766
.arg(Arg::with_name("base-url")
6867
.short("b")
6968
.long("base-url")
7069
.value_name("VALUE")
71-
.help("Code Dx base url (not including /index)")
70+
.help("Code Dx base url (e.g. 'https://localhost/codedx')")
7271
.takes_value(true)
7372
.required(true)
7473
)
7574
.arg(Arg::with_name("username")
7675
.short("u")
7776
.long("username")
7877
.value_name("VALUE")
79-
.help("for basic auth, the username")
78+
.help("Username for basic auth")
8079
.takes_value(true)
8180
)
8281
.arg(Arg::with_name("password")
8382
.short("p")
8483
.long("password")
8584
.value_name("VALUE")
86-
.help("for basic auth, the password")
85+
.help("Password for basic auth")
8786
.takes_value(true)
8887
)
8988
.arg(Arg::with_name("api-key")
9089
.short("k")
9190
.long("api-key")
9291
.value_name("VALUE")
93-
.help("for key-based auth, the API Key")
92+
.help("API Key for for key-based auth")
9493
.takes_value(true)
9594
)
9695
.arg(Arg::with_name("insecure")
9796
.long("insecure")
9897
.takes_value(false)
99-
.help("ignore https certificate validation")
98+
.help("Ignore https certificate hostname validation")
10099
)
101100
.arg(Arg::with_name("no-prompt")
102101
.long("no-prompt")
103102
.takes_value(false)
104-
.help("don't output REPL prompts to STDOUT")
103+
.help("Don't output REPL prompts to STDOUT")
105104
);
106105
let matches = get_matches(app);
107106

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ fn repl_app() -> App<'static, 'static> {
276276
.short("n")
277277
.long("name")
278278
.value_name("PART_OF_NAME")
279-
.help("provide criteria by case-insensitive name matching")
279+
.help("Provide criteria by case-insensitive name matching")
280280
.takes_value(true)
281281
.required(false)
282282
)
@@ -285,7 +285,7 @@ fn repl_app() -> App<'static, 'static> {
285285
.long("metadata")
286286
.number_of_values(2)
287287
.value_names(&["FIELD", "VALUE"])
288-
.help("provide criteria by project metadata")
288+
.help("Provide criteria by project metadata")
289289
.multiple(true)
290290
.required(false)
291291
)

0 commit comments

Comments
 (0)