swiftly.cli

Command Line Client to Swift

Copyright 2011-2013 Gregory Holt

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class swiftly.cli.CLI(args=None, stdin=None, stdout=None, stderr=None)[source]

Bases: object

An instance of a command line interface client to Swift. After construction, a call to main() will execute the command line given. No args will output help information.

Parameters:
  • args – The command line arguments to process.
  • stdin – The file-like-object to read input from.
  • stdout – The file-like-object to send output to.
  • stderr – The file-like-object to send error output to.
main()[source]

Process the command line given in the constructor.

Previous topic

swiftly

Next topic

swiftly.client

This Page