samba-tool: fix format of command description (help messages)
authorBjörn Baumbach <bb@sernet.de>
Thu, 21 Mar 2019 13:15:22 +0000 (14:15 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jul 2019 02:07:20 +0000 (02:07 +0000)
Need to quote the backslash '\'.

Signed-off-by: Björn Baumbach <bb@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/computer.py
python/samba/netcmd/group.py
python/samba/netcmd/ou.py
python/samba/netcmd/schema.py
python/samba/netcmd/user.py

index ff4c3979e78db3da84f07f27b350b0b41bc26f34..81b401db9b386d41b2dd2aff4b9ceffc3c3aa7c6 100644 (file)
@@ -181,7 +181,7 @@ accounts are also referred to as security principals and are assigned a
 security identifier (SID).
 
 Example1:
-samba-tool computer create Computer1 -H ldap://samba.samdom.example.com \
+samba-tool computer create Computer1 -H ldap://samba.samdom.example.com \\
     -Uadministrator%passw1rd
 
 Example1 shows how to create a new computer in the domain against a remote LDAP
@@ -323,7 +323,7 @@ userid. The -H or --URL= option can be used to execute the command against
 a remote server.
 
 Example1:
-samba-tool computer delete Computer1 -H ldap://samba.samdom.example.com \
+samba-tool computer delete Computer1 -H ldap://samba.samdom.example.com \\
     -Uadministrator%passw1rd
 
 Example1 shows how to delete a computer in the domain against a remote LDAP
@@ -450,7 +450,7 @@ The -H or --URL= option can be used to execute the command against a remote
 server.
 
 Example1:
-samba-tool computer show Computer1 -H ldap://samba.samdom.example.com \
+samba-tool computer show Computer1 -H ldap://samba.samdom.example.com \\
     -U administrator
 
 Example1 shows how display a computers attributes in the domain against a
index 3d55222e8d023eb0d6977d6d61432051e8e4a4af..6976f82d132b902e2a855b025ba7c7c838a72b0a 100644 (file)
@@ -444,7 +444,7 @@ class cmd_group_move(Command):
     server.
 
     Example1:
-    samba-tool group move Group1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \
+    samba-tool group move Group1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \\
         -H ldap://samba.samdom.example.com -U administrator
 
     Example1 shows how to move a group Group1 into the 'OrgUnit' organizational
@@ -522,11 +522,11 @@ The -H or --URL= option can be used to execute the command against a remote
 server.
 
 Example1:
-samba-tool group show Group1 -H ldap://samba.samdom.example.com \
--U administrator --password=passw1rd
+samba-tool group show Group1 -H ldap://samba.samdom.example.com \\
+    -U administrator --password=passw1rd
 
-Example1 shows how to display a group's attributes in the domain against a remote
-LDAP server.
+Example1 shows how to display a group's attributes in the domain against a
+remote LDAP server.
 
 The -H parameter is used to specify the remote target server.
 
index 38be3cea22e550df98a17aed31edd8cb2d45ef1d..a715a5bee139f86252eb57488d495e699e66e3f1 100644 (file)
@@ -38,7 +38,7 @@ class cmd_rename(Command):
     or without the domainDN component.
 
     Examples:
-    samba-tool ou rename 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \
+    samba-tool ou rename 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \\
         'OU=NewNameOfOrgUnit,DC=samdom,DC=example,DC=com'
     samba-tool ou rename 'OU=OrgUnit' 'OU=NewNameOfOrgUnit'
 
@@ -102,7 +102,7 @@ class cmd_move(Command):
     or without the domainDN component.
 
     Examples:
-    samba-tool ou move 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \
+    samba-tool ou move 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \\
         'OU=NewParentOfOrgUnit,DC=samdom,DC=example,DC=com'
     samba-tool ou rename 'OU=OrgUnit' 'OU=NewParentOfOrgUnit'
 
index 889dd3fb53972bd21ffb2092f22856de7f4ef6d8..d322da015ae54fee39726f4cb9105d82ab7d0bd0 100644 (file)
@@ -38,7 +38,7 @@ class cmd_schema_attribute_modify(Command):
     so be sure to view the current content before making changes.
 
     Example1:
-    samba-tool schema attribute modify uid \
+    samba-tool schema attribute modify uid \\
         --searchflags="fATTINDEX,fPRESERVEONDELETE"
 
     This alters the uid attribute to be indexed and to be preserved when
index 8ead8e583f3bd0833f19ef69da477713572e46c4..a64d2176dfac1e5b2d652d50ee95153bdaf0c1c8 100644 (file)
@@ -291,8 +291,8 @@ samba-tool user create User4 passw4rd --rfc2307-from-nss --gecos 'some text'
 Example4 shows how to create a new user with Unix UID, GID and login-shell set from the local NSS and GECOS set to 'some text'.
 
 Example5:
-samba-tool user create User5 passw5rd --nis-domain=samdom --unix-home=/home/User5 \
-           --uid-number=10005 --login-shell=/bin/false --gid-number=10000
+samba-tool user create User5 passw5rd --nis-domain=samdom --unix-home=/home/User5 \\
+    --uid-number=10005 --login-shell=/bin/false --gid-number=10000
 
 Example5 shows how to create an RFC2307/NIS domain enabled user account. If
 --nis-domain is set, then the other four parameters are mandatory.
@@ -2389,8 +2389,8 @@ The -H or --URL= option can be used to execute the command against a remote
 server.
 
 Example1:
-samba-tool user edit User1 -H ldap://samba.samdom.example.com \
--U administrator --password=passw1rd
+samba-tool user edit User1 -H ldap://samba.samdom.example.com \\
+    -U administrator --password=passw1rd
 
 Example1 shows how to edit a users attributes in the domain against a remote
 LDAP server.
@@ -2522,8 +2522,8 @@ The -H or --URL= option can be used to execute the command against a remote
 server.
 
 Example1:
-samba-tool user show User1 -H ldap://samba.samdom.example.com \
--U administrator --password=passw1rd
+samba-tool user show User1 -H ldap://samba.samdom.example.com \\
+    -U administrator --password=passw1rd
 
 Example1 shows how to display a users attributes in the domain against a remote
 LDAP server.
@@ -2603,7 +2603,7 @@ class cmd_user_move(Command):
     server.
 
     Example1:
-    samba-tool user move User1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \
+    samba-tool user move User1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \\
         -H ldap://samba.samdom.example.com -U administrator
 
     Example1 shows how to move a user User1 into the 'OrgUnit' organizational