bug fix for 'build_fabric' command

This commit is contained in:
tangxifan 2020-06-11 23:59:24 -06:00
parent 9167b288b6
commit 278acee216
1 changed files with 2 additions and 2 deletions

View File

@ -274,11 +274,11 @@ ShellCommandId add_openfpga_build_fabric_command(openfpga::Shell<OpenfpgaContext
shell_cmd.add_option("duplicate_grid_pin", false, "Duplicate the pins on the same side of a grid");
/* Add an option '--load_fabric_key' */
CommandOptionId opt_load_fkey = shell_cmd.add_option("load_fabric_key", true, "load the fabric key from the given file");
CommandOptionId opt_load_fkey = shell_cmd.add_option("load_fabric_key", false, "load the fabric key from the given file");
shell_cmd.set_option_require_value(opt_load_fkey, openfpga::OPT_STRING);
/* Add an option '--write_fabric_key' */
CommandOptionId opt_write_fkey = shell_cmd.add_option("write_fabric_key", true, "output current fabric key to a file");
CommandOptionId opt_write_fkey = shell_cmd.add_option("write_fabric_key", false, "output current fabric key to a file");
shell_cmd.set_option_require_value(opt_write_fkey, openfpga::OPT_STRING);
/* Add an option '--generate_random_fabric_key' */