gitso

gitso Commit Details


Date:2009-08-16 20:40:54 (15 years 4 months ago)
Author:gerberad
Branch:master
Commit:5812460596c7a35156546fef5b55985f7c13b02f
Parents: 97a1a73dd22356e781fc4f1c986a2ed7a44add6f
Message:/trunk/ArgsParser.py Added --version and --help.

/trunk/arch/linux/gitso.1
Updated the man page.
Changes:

File differences

gitso/trunk/ArgsParser.py
2323
2424
2525
26
2726
2827
2928
3029
31
30
3231
3332
3433
......
5453
5554
5655
57
56
57
58
59
60
61
5862
5963
6064
......
129133
130134
131135
132
136
133137
134138
139
135140
136
141
137142
138143
139144
along with Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
# import os, sys, signal, os.path, urllib
import os
import sys
import signal
import os.path
#import urllib
import urllib
class ArgsParser:
def __init__(self):
#for i in range(1, len(sys.argv)):
i = 1
while i < len(sys.argv):
if sys.argv[i] == '--dev': # --dev
if sys.argv[i] == '--help': # --help
self.HelpMenu()
elif sys.argv[i] == '--version': # --version
print "Gitso 0.6 -- Copyright 2007 - 2009 Aaron Gerber and Derek Buranen."
exit(0)
elif sys.argv[i] == '--dev': # --dev
print "Running in 'Development Mode'"
self.paths['mode'] = 'dev'
if sys.platform == "darwin":
print "Usage: " + os.path.basename(sys.argv[0]) + " [OPTION]"
print " OPTIONS"
print " --dev\t\tSet self.paths for development."
print " --listen\t\tlisten for incoming connections."
print " --listen\t\tListen for incoming connections."
print " --connect {IP|DN}\tConnects to host (support giver)."
print " --list {URL|FILE}\tAlternative Support list."
print " --version\t\tThe current Gitso version."
print " --help\t\tThis Menu."
exit(0)
exit(1)
def GetPaths(self):
return self.paths
gitso/trunk/arch/linux/gitso.1
1414
1515
1616
17
18
1719
1820
1921
......
3638
3739
3840
41
42
43
3944
4045
4146
......
4550
4651
4752
48
53
4954
5055
5156
.B --list
.I list
|
.B --version
|
.B --help
]
.SH DESCRIPTION
.I list
is either a URL of a remote file or path to local file.
.TP
.B --version
The current Gitso version.
.TP
.B --help
Display the help menu.
.SH EXAMPLES
.TP
gitso --list support.mydomain.com/techs.txt
gitso --list http://support.mydomain.com/techs.txt
Gets the list of technician IP's or DN's from techs.txt
.TP
gitso --list sanda.mydomain.com,aicha.mydomain.com

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.07162s using 13 queries.