[X2Go-Commits] [x2goserver] 24/99: x2goserver/lib/x2goupdateoptionsstring: document new --compact/-c switch.

git-admin at x2go.org git-admin at x2go.org
Mon Dec 28 06:10:40 CET 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goserver.

commit 078818eda6c95ad7ce6124409c96f15538d81716
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Nov 7 11:12:17 2020 +0100

    x2goserver/lib/x2goupdateoptionsstring: document new --compact/-c switch.
---
 debian/changelog                       |  2 ++
 x2goserver/bin/x2goupdateoptionsstring | 10 +++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d03235a3..7a7496e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -226,6 +226,8 @@ x2goserver (4.1.0.4-0x2go1.2) UNRELEASED; urgency=medium
       used to remove duplicated and empty elements.
     - x2goserver/lib/x2goupdateoptionsstring: add new --compact/-c switch to
       enable the use of compactation.
+    - x2goserver/lib/x2goupdateoptionsstring: document new --compact/-c
+      switch.
   * debian/control:
     + Build-depend upon lsb-release for distro version detection.
   * debian/x2goserver.manpages:
diff --git a/x2goserver/bin/x2goupdateoptionsstring b/x2goserver/bin/x2goupdateoptionsstring
index d7b3f04a..259cd09a 100755
--- a/x2goserver/bin/x2goupdateoptionsstring
+++ b/x2goserver/bin/x2goupdateoptionsstring
@@ -318,7 +318,7 @@ x2goupdateoptionsstring - X2Go Agent Options String Manipulator
 
 =item B<x2goupdateoptionsstring> B<--man>
 
-=item B<x2goupdateoptionsstring> [B<--debug>|B<-d>] [B<-->] I<options_string> [B<+>]|B<->I<key>[B<=>I<value>] ...
+=item B<x2goupdateoptionsstring> [B<--compact>|B<-c>] [B<--debug>|B<-d>] [B<-->] I<options_string> [B<+>]|B<->I<key>[B<=>I<value>] ...
 
 =back
 
@@ -343,6 +343,9 @@ different value, the component will be replaced with the provided value.
 To fully remove a component, pass B<->I<key>. To only remove it if it is set to
 a specific value, pass B<->I<key>B<=>I<value>.
 
+Use the B<--compact> option to minimize the original options string, removing
+duplicated and empty entries.
+
 You can terminate program options parsing via a standard double-dash (B<-->)
 pseudo-option. It is recommended to always do so if you pass removal
 transformation operations, even if no actual options are used to avoid
@@ -364,6 +367,11 @@ Prints the manual page and exits.
 
 Enables noisy debug output.
 
+=item B<--compact>|B<-c>
+
+Remove duplicate and empty entries after the initial parsing. The order of
+arguments is preserved in a first-seen fashion.
+
 =back
 
 =head1 EXAMPLE

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list