diff --git a/lib/sshyp.py b/lib/sshyp.py index 871684a..869eefb 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -375,14 +375,14 @@ def print_info(): # prints help text based on argument 'is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\nwithout even the implied ' 'warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for' ' more details.\n\nhttps://opensource.org/licenses/GPL-3.0\n') - elif arguments[0] == 'add': + elif arguments[0] == 'add' and device_type == 'client': print('\n\u001b[1musage:\u001b[0m sshyp add [flag []]\u001b[0m\n') print('\u001b[1mflags:\u001b[0m') print('add:') print(' password/-p add a password entry') print(' note/-n add a note entry') print(' folder/-f add a new folder for entries\n') - elif arguments[0] == 'edit': + elif arguments[0] == 'edit' and device_type == 'client': print('\n\u001b[1musage:\u001b[0m sshyp edit [flag []]\u001b[0m\n') print('\u001b[1mflags:\u001b[0m') print('edit:') @@ -391,7 +391,7 @@ def print_info(): # prints help text based on argument print(' password/-p change the password of an entry') print(' url/-l change the url attached to an entry') print(' note/-n change the note attached to an entry\n') - elif arguments[0] == 'copy': + elif arguments[0] == 'copy' and device_type == 'client': print('\n\u001b[1musage:\u001b[0m sshyp copy [flag []]\u001b[0m\n') print('\u001b[1mflags:\u001b[0m') print('copy:')