Closed Theophobia closed 1 year ago
It seems like a bug, if you edit ngrest script inlining the content of parse_codegen_options
function to two places it would work:
create() {
CODEGEN_OPTIONS=
if [ "x${1::1}" = "x-" ]
then
case "${1:1:1}" in
d)
OPT=${1:2}
if [ -z "$OPT" ]
then
if [ -z "${2:-}" ]
then
echo "Missing option for -d" >&2
exit 1;
fi
OPT=$2
shift
fi
CODEGEN_OPTIONS+=",$OPT"
;;
esac
shift
fi
if [ -z "$1" ]
then
echo "Project name omitted" >&2
help_create
exit 1
fi
...
Replacing parse_codegen_options $@
with the function itself in addservice()
and create()
seemed to work.
Thank you!
Hi,
After installing I could not create a project with a service within a single
.hpp
file using the commandngrest create -d hpp <project_name>
Uninstalling and following the installation instructions did not help me:
However, creating normally results in a functioning project:
Running Arch Linux x86_64 on 5.15.79-1-lts, all packages up to date. Some time ago I remember being able to create a service in a single
.hpp
file, has something changed or am I doing something wrong?Regards, Theophobia