~jpds/lmirror/make-clean

« back to all changes in this revision

Viewing changes to l_mirror/arguments/string.py

  • Committer: Robert Collins
  • Date: 2010-03-16 07:09:56 UTC
  • Revision ID: robertc@robertcollins.net-20100316070956-684mbvc3jrpro3dz
Add .testr.conf, lmirror script with core (help and commands) support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# LMirror is Copyright (C) 2010 Robert Collins <robertc@robertcollins.net>
 
3
 
4
# LMirror is free software: you can redistribute it and/or modify it under the
 
5
# terms of the GNU General Public License as published by the Free Software
 
6
# Foundation, either version 3 of the License, or (at your option) any later
 
7
# version.
 
8
 
9
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
 
10
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
11
# PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 
12
 
13
# You should have received a copy of the GNU General Public License along with
 
14
# this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 
16
# In the LMirror source tree the file COPYING.txt contains the GNU General Public
 
17
# License version 3.
 
18
 
19
 
 
20
"""An Argument that simply stores a string."""
 
21
 
 
22
__all__ = ['StringArgument']
 
23
 
 
24
from l_mirror.arguments import AbstractArgument
 
25
 
 
26
 
 
27
class StringArgument(AbstractArgument):
 
28
    """An argument that stores a string verbatim."""
 
29
 
 
30
    def _parse_one(self, arg):
 
31
        return arg