From d049d77c4ac2cb51db368804b3e796a2682afc69 Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Wed, 22 Jan 2025 21:15:50 -0500 Subject: [PATCH] Fix bug with default bundle directory handling (#275) There was a bug in corral's handling of the the `-d` command line option. The default value was set to the string "". This would result in corral.json not being found. The bug wasn't triggered because a bug in the Pony standard library prevented the default value from correctly being applied. Once that bug was fixed, corral stopped working unless a `-d` value was provided. --- .release-notes/275.md | 5 +++++ corral/cli.pony | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .release-notes/275.md diff --git a/.release-notes/275.md b/.release-notes/275.md new file mode 100644 index 00000000..0bf206ea --- /dev/null +++ b/.release-notes/275.md @@ -0,0 +1,5 @@ +## Fix bug with default bundle directory handling + +There was a bug in corral's handling of the the `-d` command line option. The default value was set to the string "". This would result in corral.json not being found. + +The bug wasn't triggered because a bug in the Pony standard library prevented the default value from correctly being applied. Once that bug was fixed, corral stopped working unless a `-d` value was provided. diff --git a/corral/cli.pony b/corral/cli.pony index 1650e066..096db4d2 100644 --- a/corral/cli.pony +++ b/corral/cli.pony @@ -47,9 +47,9 @@ primitive CLI default' = false) OptionSpec.string( "bundle_dir", - "The directory where the bundle's corral.json and lock.json are located." + "The directory where the bundle's corral.json and lock.json are located. Defaults to the current working directory." where short' = 'd', - default' = "") + default' = "") ], [ CommandSpec.leaf(