diff --git a/openfpga/src/base/basic_command.cpp b/openfpga/src/base/basic_command.cpp index 6f12f778e..8c2834ee0 100644 --- a/openfpga/src/base/basic_command.cpp +++ b/openfpga/src/base/basic_command.cpp @@ -114,6 +114,10 @@ void add_basic_commands(openfpga::Shell& shell) { shell.set_command_execute_function(shell_cmd_version_id, print_openfpga_version_info); + /* Add 'source' command which can run a set of commands */ + add_openfpga_source_command(shell, basic_cmd_class, + std::vector()); + /* Note: * help MUST be the last to add because the linking to execute function will * do a snapshot on the shell @@ -125,9 +129,6 @@ void add_basic_commands(openfpga::Shell& shell) { shell.set_command_execute_function(shell_cmd_help_id, [shell]() { shell.print_commands(); }); - /* Add 'source' command which can run a set of commands */ - add_openfpga_source_command(shell, basic_cmd_class, - std::vector()); } } /* end namespace openfpga */