argparse does prefix matching
Wow. WOW.
Wrote a program accepting a LONG --yes_delete_all_data_completely
, without a short version, to make sure no one does an error and deletes everything.
Today I mistyped a --y
parameter, it started in the mode above.
Then I learned that argparse does prefix matching.
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus