diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-07 12:19:48 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-07 12:19:48 +0200 |
commit | 9eeecf0e62d44c59f5f0a5243a47793369dd71c0 (patch) | |
tree | 8e54562be6dac7e8b728ebec90125c5463ccb058 /ice40/main.cc | |
parent | 3769b2058019ce7c6be824085e1047e1beec07dc (diff) | |
download | nextpnr-9eeecf0e62d44c59f5f0a5243a47793369dd71c0.tar.gz nextpnr-9eeecf0e62d44c59f5f0a5243a47793369dd71c0.tar.bz2 nextpnr-9eeecf0e62d44c59f5f0a5243a47793369dd71c0.zip |
Rename --file to --run
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index 5d00fcc8..da39c1e5 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) options.add_options()("test","just a check"); options.add_options()("gui","start gui"); options.add_options()("svg","dump SVG file"); - options.add_options()("file", po::value<std::vector<std::string>>(), "python file to execute"); + options.add_options()("run", po::value<std::vector<std::string>>(), "python file to execute"); options.add_options()("json", po::value<std::string>(), "JSON design file to ingest"); options.add_options()("version,v","show version"); options.add_options()("lp384","set device type to iCE40LP384"); @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) options.add_options()("up5k","set device type to iCE40UP5K"); po::positional_options_description pos; - pos.add("file", -1); + pos.add("run", -1); po::variables_map vm; try { @@ -205,7 +205,7 @@ int main(int argc, char *argv[]) parse_json_file(f, filename, &design); } - if (vm.count("file")) + if (vm.count("run")) { std::vector<std::string> files = vm["file"].as<std::vector<std::string>>(); for(auto filename : files) |