Skip to content

Commit 5ab517c

Browse files
committed
Require subcommand
1 parent 923c7de commit 5ab517c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ different sets of arguments. It can be useful for managing long-running tasks.
55

66
## Installation
77

8+
cargo install process-queue
9+
810
cargo install --git 'https://bitbucket.org/Soft/process-queue.git'
911

1012
## Usage

src/cli.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ pub fn setup_command_line() -> App<'static, 'static> {
88
.default_value("default")
99
.help("Server name");
1010
App::new("pqueue")
11-
.version("0.1")
12-
.author("samuel.lauren@iki.fi")
11+
.version(env!("CARGO_PKG_VERSION"))
12+
.author(env!("CARGO_PKG_AUTHORS"))
1313
.about("Queue programs for execution")
1414
.setting(AppSettings::SubcommandRequired)
15+
.setting(AppSettings::SubcommandRequiredElseHelp)
1516
.subcommand(
1617
SubCommand::with_name("server")
1718
.about("Start a job queue server")

0 commit comments

Comments
 (0)