I get this output when I run astyle on my C project:
$ LC_ALL=C astyle --project=.astylerc -- src/main.c
Invalid Artistic Style options:
For help on options type 'astyle -h'
Artistic Style has terminated
Two problems:
.astylerc are valid options according to astyle -h.Content of .astylerc (in the current working directory):
--indent=tab=4
--style=webkit
--indent-preproc-block
--align-pointer=type
I get this behavior with the latest version on Arch Linux (=3.5.2) and with a master (38c12d4e) build.
Hi, the error message is triggered by the
--flag. astyle does not support this notion. But the error message is misleading.Last edit: André Simon 2024-09-08
OK, good to know that it works without
--. Thank you!