Clean up printer register (#622)

Remove printer register from documentation
Make non-documented command be:
    `gam printer register`
instead of:
    `gam printer xxx register`
as xxx isn't used (it's PrinterID for other commands)
This commit is contained in:
Ross Scroggs
2017-10-16 20:38:00 -04:00
committed by Jay Lee
parent 2cc48a0f25
commit 2995327a15
2 changed files with 3 additions and 3 deletions

View File

@@ -824,7 +824,6 @@ gam show guardian|guardians [invitedguardian <EmailAddress>] [student <StudentIt
gam print guardian|guardians [todrive] [invitedguardian <EmailAddress>] [student <StudentItem>] [invitations [states <GuardianStateList>]] [<UserTypeEntity>]
gam cancel guardianinvitation|guardianinvitations <GuardianInvitationID> <StudentItem>
gam printer register
gam update printer <PrinterID> <PrinterAttributes>+
gam delete printer <PrinterID>
gam info printer <PrinterID> [everything]

View File

@@ -11957,6 +11957,9 @@ def ProcessGAMCommand(args):
sys.exit(2)
sys.exit(0)
elif command == u'printer':
if sys.argv[2].lower() == u'register':
doPrinterRegister()
sys.exit(0)
argument = sys.argv[3].lower()
if argument == u'showacl':
doPrinterShowACL()
@@ -11964,8 +11967,6 @@ def ProcessGAMCommand(args):
doPrinterAddACL()
elif argument in [u'del', u'delete', u'remove']:
doPrinterDelACL()
elif argument == u'register':
doPrinterRegister()
else:
print u'ERROR: %s is not a valid argument for "gam printer..."' % argument
sys.exit(2)