mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-25 16:41:35 +00:00
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:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user