From 41e2ade4fcb7f064a583eaa1a24b14284e75a555 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Tue, 6 Jun 2017 16:16:11 +0200 Subject: [PATCH] Update cli usage hint and remove unnecessary description text I don't know any cli tool that shows a description text on the same line as the usage and sigrok-cli doesn't do it either, so it shouldn't be there. As I don't see any other place where it would make sense, I remove it completely. --- CMakeLists.txt | 1 - config.h.in | 1 - main.cpp | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b18b81a7..983dc537 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,7 +153,6 @@ memaccess_check_unaligned_le(HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS) #------------------------------------------------------------------------------- set(PV_TITLE PulseView) -set(PV_DESCRIPTION "A GUI for sigrok") set(PV_VERSION_STRING "0.4.0") set(PV_GLIBMM_VERSION ${PKGDEPS_glibmm-2.4_VERSION}) diff --git a/config.h.in b/config.h.in index 8148ce1f..7720001a 100644 --- a/config.h.in +++ b/config.h.in @@ -22,7 +22,6 @@ /* Application details */ #define PV_TITLE "@PV_TITLE@" -#define PV_DESCRIPTION "@PV_DESCRIPTION@" #define PV_BIN_NAME "@PROJECT_NAME@" /* Pulseview version information */ diff --git a/main.cpp b/main.cpp index 91061ab7..e5472c2a 100644 --- a/main.cpp +++ b/main.cpp @@ -58,7 +58,7 @@ void usage() { fprintf(stdout, "Usage:\n" - " %s [OPTION...] - %s\n" + " %s [OPTIONS] [FILE]\n" "\n" "Help Options:\n" " -h, -?, --help Show help option\n" @@ -69,7 +69,7 @@ void usage() " -i, --input-file Load input from file\n" " -I, --input-format Input format\n" " -c, --clean Don't restore previous sessions on startup\n" - "\n", PV_BIN_NAME, PV_DESCRIPTION); + "\n", PV_BIN_NAME); } int main(int argc, char *argv[]) -- 2.30.2