Improve technical instruction and add -version flag#237
Conversation
|
A preview of the new version: https://xingertang-alphapeel.readthedocs.io/en/doc-issue-230-technical-instruction/index.html |
|
@XingerTang I have reviewed your changes. This looks very comprehensive - good job! I think this is ready to merge, so go ahead doing that if you don't plan any additional commits to this PR. |
|
@gregorgorjanc I made a typo in the last commit I just pushed, that I typed There are also more discussions here (https://softwareengineering.stackexchange.com/questions/70357/command-line-options-style-posix-or-what). Suggesting using a single hyphen throughout for everything, or the double hyphen for long options. We are currently using I think maybe we can choose one of the standards and stick with it. |
|
I just made the change, fixing the typo back to |
|
Yeah, I thought about single and double hyphen flags/options too! Since many of our flags are quite complex/long, it will be hard to get short versions and these are tricky to remember unless users use a tool all the time (like some shell tools), so we will largely have only long versions and then using single - is fine, I guess; except -h and --help, which is ok as that gives users two entries to help. We could change --help to -help and just use single - for everything and be done with it. Happy to follow your choice;) |
I just checked the The difference arises from the built-in help message for the option I think it is possible to modify it by disabling the automatic help options support, as shown in https://docs.python.org/3/library/argparse.html#add-help I suggest we can keep the support for the It would require modifications in |
|
I would not disable, if we can get -h and -help from our side and also --help from arg parse then even better. Given this state let's advertise in the docs that we can use -h and -help so we focus on single dash options only. |
I just added For the built-in help options, we might need to disable them to generate a sensible help message. As the automatic generation would always show a line of At the top, regardless of whether we add We can add a new option argument with all three options written together. |
|
Huh, there is always something else to do ... Is |
It's quite easy to implement, a simple example is below. But the code should be in No other changes are planned here. I can soon squash the commits and merge this. |
|
Aha, having that in |
8614645 to
380b7f5
Compare
Related Issue
Closes #230
Closes #204
What changed
-versionflag for Report version via -version #204Why this change
Submodule changes
No change made for this PR, but update the reference to the existing most recent commit on the
develbranch of https://github.com/AlphaGenes/tinyhouse (34da21f)Notes / Risks