File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818import xml .dom .minidom
1919from optparse import OptionParser
20+ from textwrap import dedent
2021import os
2122import sys
2223class cmdParameterProperty (object ):
@@ -80,6 +81,25 @@ def generate(self, cmd):
8081
8182 self .cmd = cmd
8283 self .cmdsName .append (self .cmd .name )
84+ license = """\
85+ # Licensed to the Apache Software Foundation (ASF) under one
86+ # or more contributor license agreements. See the NOTICE file
87+ # distributed with this work for additional information
88+ # regarding copyright ownership. The ASF licenses this file
89+ # to you under the Apache License, Version 2.0 (the
90+ # "License"); you may not use this file except in compliance
91+ # with the License. You may obtain a copy of the License at
92+ #
93+ # http://www.apache.org/licenses/LICENSE-2.0
94+ #
95+ # Unless required by applicable law or agreed to in writing,
96+ # software distributed under the License is distributed on an
97+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
98+ # KIND, either express or implied. See the License for the
99+ # specific language governing permissions and limitations
100+ # under the License.
101+ """
102+ self .code = dedent (license )
83103 self .code += "\n "
84104 self .code += '"""%s"""\n ' % self .cmd .desc
85105 self .code += 'from baseCmd import *\n '
You can’t perform that action at this time.
0 commit comments