From 858590490c75db51a6f53a520befec1e1d31eb4d Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Wed, 24 Jun 2020 16:30:24 -0700 Subject: [PATCH] storewolf: version argument expects semver value The --version argument expects a valid semver value as input. Version numbers without three parts fail with a message saying "Expected dot". This commit updates the documentation to match the behavior of storewolf. --- sources/api/README.md | 2 +- sources/api/storewolf/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/api/README.md b/sources/api/README.md index 8bfdbcf7d5b..fe49b5f9eb1 100644 --- a/sources/api/README.md +++ b/sources/api/README.md @@ -143,7 +143,7 @@ These commands create one in `/tmp`, but you can create it in a more permanent l From the `sources/api/storewolf` directory: ``` -cargo run -- --data-store-base-path /tmp/data-store --version 0.1 +cargo run -- --data-store-base-path /tmp/data-store --version 0.0.1 ``` Now you can start the API server. diff --git a/sources/api/storewolf/src/main.rs b/sources/api/storewolf/src/main.rs index f865a77b5a5..184ab9eb30e 100644 --- a/sources/api/storewolf/src/main.rs +++ b/sources/api/storewolf/src/main.rs @@ -538,7 +538,7 @@ fn usage() -> ! { eprintln!( r"Usage: {} --data-store-base-path PATH - [ --version X.Y ] + [ --version X.Y.Z ] [ --log-level trace|debug|info|warn|error ] If --version is not given, the version will be pulled from /etc/os-release.