Skip to content
Snippets Groups Projects
Commit fd294dc6 authored by Benjamin Cumming's avatar Benjamin Cumming
Browse files

add command line flag for spike file output

* single flag -f that turns output on (off by default)
* other parameters have to be provided by an input file
    * if -f is set the defaults will be used
parent 265d75ee
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,8 @@ cl_options read_options(int argc, char** argv) {
TCLAP::ValueArg<util::optional<unsigned>> trace_max_gid_arg(
"T", "trace-max-gid", "only trace probes on cells up to and including <gid>",
false, defopts.trace_max_gid, "gid", cmd);
TCLAP::SwitchArg spike_output_arg(
"f","spike_file_output","save spikes to file", cmd, false);
cmd.reorder_arguments();
cmd.parse(argc, argv);
......@@ -241,6 +243,7 @@ cl_options read_options(int argc, char** argv) {
update_option(options.probe_soma_only, probe_soma_only_arg);
update_option(options.trace_prefix, trace_prefix_arg);
update_option(options.trace_max_gid, trace_max_gid_arg);
update_option(options.spike_file_output, spike_output_arg);
save_file = ofile_arg.getValue();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment