projtool.pl: allow existing projects to be specified by path
commit7e1a3911688855910623e432719f29c95f56f023
authorKyle J. McKay <mackyle@gmail.com>
Fri, 2 Jul 2021 20:55:12 +0000 (2 13:55 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 2 Jul 2021 20:55:12 +0000 (2 13:55 -0700)
tree4d19b45934b19e42796dfd27bb8555bd40ddebb0
parente8f7b5385dbc30604c0f8fdcece100a0bf7a1705
projtool.pl: allow existing projects to be specified by path

Where an existing project is required, accept a path to that
project and make a best effort attempt to translate that path
to a project name before giving up with an error.

For safety, make the remove command continue to only accept
project names.  The prune command, by its very nature, only
accepts project names as it's looking for missing directories.

Add a note about all this to the beginning of the help output
including a mention of the convenient "." shortcut.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
toolbox/projtool.pl