openmc icon indicating copy to clipboard operation
openmc copied to clipboard

Add short arguments for `openmc config` options

Open ahnaf-tahmid-chowdhury opened this issue 1 month ago • 1 comments

This PR introduces short command-line arguments for the openmc config subcommand, enhancing usability and convenience.

The following short arguments have been added:

  • -p for --prefix
  • -i for --include-dir
  • -l for --lib-dir
  • -c for --cmake-dir
  • -L for --libs
  • -e for --extra-libs
  • -d for --extra-lib-dir

These changes were implemented by modifying src/config.cpp to update the print_config_usage function and the argument parsing logic within openmc_config_main.

ahnaf-tahmid-chowdhury avatar Nov 29 '25 12:11 ahnaf-tahmid-chowdhury

This PR depends on PR #3339

ahnaf-tahmid-chowdhury avatar Nov 29 '25 13:11 ahnaf-tahmid-chowdhury