ミラー
This commit is contained in:
20
main.cc
Normal file
20
main.cc
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "src/hexeditor.hh"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc != 2) {
|
||||
std::cerr << "usage: hexagon <filename>\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
try {
|
||||
HexEditor editor(argv[1]);
|
||||
editor.run();
|
||||
} catch (const std::exception &e) {
|
||||
std::cerr << "エラー: " << e.what() << "\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user