aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/twinrx_freq_hopping.cpp
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-01-10 15:19:48 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-16 11:40:23 -0800
commit601e0ed87bd97a54f5243fffa7ccd60e31e42425 (patch)
tree596988e677e7929d5c24259d3b0870f93f107ded /host/examples/twinrx_freq_hopping.cpp
parent8bd7498ed9fea9c46fa34705986968416d818029 (diff)
downloaduhd-601e0ed87bd97a54f5243fffa7ccd60e31e42425.tar.gz
uhd-601e0ed87bd97a54f5243fffa7ccd60e31e42425.tar.bz2
uhd-601e0ed87bd97a54f5243fffa7ccd60e31e42425.zip
examples: utils: skip formatting program options
Turning off clang formatting around the program option declarations. clang-format makes them looks bad an unreadable because it thinks the options are function calls or something.
Diffstat (limited to 'host/examples/twinrx_freq_hopping.cpp')
-rw-r--r--host/examples/twinrx_freq_hopping.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/examples/twinrx_freq_hopping.cpp b/host/examples/twinrx_freq_hopping.cpp
index e6819adde..f4ce3e528 100644
--- a/host/examples/twinrx_freq_hopping.cpp
+++ b/host/examples/twinrx_freq_hopping.cpp
@@ -109,6 +109,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
// Set up the program options
po::options_description desc("Allowed options");
+ // clang-format off
desc.add_options()
("help", "Print this help message")
("args", po::value<std::string>(&args)->default_value(""), "UHD device args")
@@ -123,6 +124,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("fft-path", po::value<std::string>(&fft_path), "Output an FFT to this file (optional)")
("repeat", "repeat sweep until Ctrl-C is pressed")
;
+ // clang-format on
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);
po::notify(vm);