From fd294dc6ab3368e593396273b52cfda6f37a43f3 Mon Sep 17 00:00:00 2001 From: bcumming <bcumming@cscs.ch> Date: Thu, 18 Aug 2016 11:30:49 +0200 Subject: [PATCH] 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 --- miniapp/io.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniapp/io.cpp b/miniapp/io.cpp index fbc70ef8..0ee643bf 100644 --- a/miniapp/io.cpp +++ b/miniapp/io.cpp @@ -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(); } -- GitLab