Merge pull request #107 from choldgraf/docstring

reorganize command line arguments
pull/119/head
Tim Head 2017-10-24 06:20:17 +02:00 zatwierdzone przez GitHub
commit ca144b0ed8
1 zmienionych plików z 17 dodań i 17 usunięć

Wyświetl plik

@ -137,19 +137,25 @@ class Repo2Docker(Application):
help='If building a git url, which ref to check out'
)
argparser.add_argument(
'--push',
dest='push',
action='store_true',
help='Push docker image to repository'
)
argparser.add_argument(
'--debug',
help="Turn on debug logging",
action='store_true',
)
argparser.add_argument(
'--no-build',
dest='build',
action='store_false',
help="Do not actually build the image. Useful in conjunction with --debug."
)
argparser.add_argument(
'cmd',
nargs=argparse.REMAINDER,
help='Custom command to run after building container'
)
argparser.add_argument(
'--no-run',
dest='run',
@ -165,16 +171,10 @@ class Repo2Docker(Application):
)
argparser.add_argument(
'--no-build',
dest='build',
action='store_false',
help="Do not actually build the image. Useful in conjunction with --debug."
)
argparser.add_argument(
'cmd',
nargs='*',
help='Custom command to run after building container'
'--push',
dest='push',
action='store_true',
help='Push docker image to repository'
)
return argparser