blob: df7e2237c7cb15b1543c455259b09829e2f790ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import argparse
import sys
from vcstool.streams import set_streams
from .command import Command
from .command import simple_main
class PullCommand(Command):
command = 'pull'
help = 'Bring changes from the repository into the working copy'
def __init__(self, args):
super(PullCommand, self).__init__(args)
def get_parser():
parser = argparse.ArgumentParser(
description='Bring changes from the repository into the working copy',
prog='vcs pull')
parser.add_argument_group('"pull" command parameters')
return parser
def main(args=None, stdout=None, stderr=None):
set_streams(stdout=stdout, stderr=stderr)
parser = get_parser()
return simple_main(parser, PullCommand, args)
if __name__ == '__main__':
sys.exit(main())
|