CLIUtil.pm: try harder in get_project
commite8f7b5385dbc30604c0f8fdcece100a0bf7a1705
authorKyle J. McKay <mackyle@gmail.com>
Fri, 2 Jul 2021 20:16:55 +0000 (2 13:16 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 2 Jul 2021 20:16:55 +0000 (2 13:16 -0700)
treea83f66af7a8b348d5722c299800f7bf88182c66d
parentf3261c4500524a5f11a04fbcce194c74bcde8934
CLIUtil.pm: try harder in get_project

As CLIUtil provides services for command line clients, allow a path
to be passed in to get_project instead of just a project name.

However, only activate the "try harder" code if an optional second
argument is passed that has a "true" value.

Provide a new convenience/self-documenting function `get_project_harder`
that calls get_project with its first arg and passes true for the
second.

This way the "allow a path" logic remains opt-in only to avoid any
unexpected nasty surprises.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/CLIUtil.pm