Skip to content

Commit

Permalink
Merge pull request #175 from ocf/mod-printer
Browse files Browse the repository at this point in the history
Replace required flag for mod-printer
  • Loading branch information
ethanwu10 authored Mar 1, 2022
2 parents 650bff2 + cbbb1d0 commit cb23d3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion staff/lab/mod-printer
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def main():
)
parser.add_argument('-c', '--classname', help='modify/list only a specific class')

subparsers = parser.add_subparsers(dest='action', help='action to perform', required=True)
subparsers = parser.add_subparsers(dest='action', help='action to perform')
subparsers.required = True

add_parser = subparsers.add_parser('add', help='add a printer')
add_parser.add_argument('printer', help='name of printer to add')
Expand Down

0 comments on commit cb23d3b

Please sign in to comment.