Forrest logo
back to the uncrustify tool

uncrustify:tldr:04ff0

uncrustify: Generate a new configuration file.
$ uncrustify --update-config -o ${path-to-new-cfg}
try on your machine

This command is using the "uncrustify" tool with two main options: "--update-config" and "-o".

  1. "--update-config": This option tells the "uncrustify" tool to update the given configuration file with the new settings. It means that the configuration file specified by "${path-to-new-cfg}" will be modified based on the current default settings of "uncrustify".

  2. "-o ${path-to-new-cfg}": This option specifies the output file for the updated configuration. The "${path-to-new-cfg}" represents the path where the new configuration file will be saved after being updated by "uncrustify".

In summary, this command updates a configuration file using "uncrustify", making it reflect the default settings of the tool, and then saves the updated configuration to a new file specified by "${path-to-new-cfg}".

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the uncrustify tool