https://qt5.jp/2014/06/qcommandlineparser/
コマンドライン引数を扱う方法