mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Print a newline after the --version
Otherwise various shells are unhappy
This commit is contained in:
parent
91cfe827b6
commit
6c846299c8
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
|||
#[macro_use]
|
||||
extern crate clap;
|
||||
|
||||
#[macro_use]
|
||||
extern crate const_format;
|
||||
|
||||
use build::{BuildOutcome, BuiltFile};
|
||||
use bumpalo::Bump;
|
||||
use clap::{App, AppSettings, Arg, ArgMatches};
|
||||
|
@ -32,7 +35,7 @@ pub const ARGS_FOR_APP: &str = "ARGS_FOR_APP";
|
|||
|
||||
pub fn build_app<'a>() -> App<'a> {
|
||||
let app = App::new("roc")
|
||||
.version(crate_version!())
|
||||
.version(concatcp!(crate_version!(), "\n"))
|
||||
.subcommand(App::new(CMD_BUILD)
|
||||
.about("Build a program")
|
||||
.arg(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue