lwang-astro / PeTar

PeTar is a high-performance N-body code for modelling the evolution of star clusters and tidal streams, including the effect of galactic potential, dynamics of binary and hierarchical system, single and binary stellar evolution.
MIT License
71 stars 19 forks source link

support long option form of interrupt-mode and external-mode #41

Closed kaiwu-astro closed 1 year ago

lwang-astro commented 1 year ago

Thanks for the suggestion. The long option is indeed convenient, but your current addition is not sufficient. First of all, a small problem is that no corresponding help message for the long-name option is included. The major issue is that if you check the options of petar.data.process and petar.movie. For all short-name options of petar.data.process, there are corresponding long-name options. To implement long-name for all short-name options for petar.movie, I will consider to do a complete work instead of only two options (-t, -i). Another problem is that petar.movie have much more options than petar.data.process, thus it is also not possible to give all long-name options short names. I will keep in mind of your suggestion and may update in the future.