Print a newline after the --version

Otherwise various shells are unhappy
This commit is contained in:
Richard Feldman 2021-08-05 22:24:14 -04:00
parent 91cfe827b6
commit 6c846299c8
2 changed files with 5 additions and 2 deletions

View file

@ -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(