Menu

#581 Invalid Artistic Style options: No output

closed
None
2024-09-11
2024-09-08
No

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:

  • The list of invalid options is empty.
  • All the options set in .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.

Discussion

  • André Simon

    André Simon - 2024-09-08

    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
  • Max Schillinger

    Max Schillinger - 2024-09-08

    OK, good to know that it works without --. Thank you!

     
  • André Simon

    André Simon - 2024-09-11
    • status: open --> closed
    • assigned_to: André Simon
     

Log in to post a comment.

MongoDB Logo MongoDB