Skip to content

Commit

Permalink
Fixed warn of --max-splits without --split (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-do authored and dirk-thomas committed Nov 16, 2017
1 parent 9328776 commit 46d5ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rosbag/src/record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rosbag::RecorderOptions parseOptions(int argc, char** argv) {
("bz2,j", "use BZ2 compression")
("lz4", "use LZ4 compression")
("split", po::value<int>()->implicit_value(0), "Split the bag file and continue recording when maximum size or maximum duration reached.")
("max-splits", po::value<int>()->default_value(0), "Keep a maximum of N bag files, when reaching the maximum erase the oldest one to keep a constant number of files.")
("max-splits", po::value<int>(), "Keep a maximum of N bag files, when reaching the maximum erase the oldest one to keep a constant number of files.")
("topic", po::value< std::vector<std::string> >(), "topic to record")
("size", po::value<uint64_t>(), "The maximum size of the bag to record in MB.")
("duration", po::value<std::string>(), "Record a bag of maximum duration in seconds, unless 'm', or 'h' is appended.")
Expand Down
1 change: 1 addition & 0 deletions tools/rosbag/src/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ RecorderOptions::RecorderOptions() :
limit(0),
split(false),
max_size(0),
max_splits(0),
max_duration(-1.0),
node(""),
min_space(1024 * 1024 * 1024),
Expand Down

0 comments on commit 46d5ba4

Please sign in to comment.