Fix
git-svn-id: http://photonzero.com/dotfiles/trunk@90 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
parent
77acad2040
commit
9358ed7abb
1 changed files with 2 additions and 2 deletions
4
bin/ptw
4
bin/ptw
|
|
@ -163,7 +163,7 @@ def db_append(data):
|
||||||
db_file.close()
|
db_file.close()
|
||||||
db.append(data)
|
db.append(data)
|
||||||
db_file = open(os.path.expanduser("~/.ptwdb"), "w")
|
db_file = open(os.path.expanduser("~/.ptwdb"), "w")
|
||||||
json.dump(db, db_file)
|
json.dump(db, db_file, indent=2)
|
||||||
db_file.close()
|
db_file.close()
|
||||||
|
|
||||||
def db_new():
|
def db_new():
|
||||||
|
|
@ -209,7 +209,7 @@ parser.add_option("--host", dest="hostname", help="Hostname from post",
|
||||||
parser.add_option("--client", dest="client", help="Client for post",
|
parser.add_option("--client", dest="client", help="Client for post",
|
||||||
default="Command Line", metavar="CLIENT")
|
default="Command Line", metavar="CLIENT")
|
||||||
parser.add_option("-n", dest="num", help="Number of posts to show",
|
parser.add_option("-n", dest="num", help="Number of posts to show",
|
||||||
default=None, metavar="N")
|
type="int", default=None, metavar="N")
|
||||||
parser.add_option("-s", "--since", dest="since", help="Number of posts to show",
|
parser.add_option("-s", "--since", dest="since", help="Number of posts to show",
|
||||||
default=None, metavar="SINCE")
|
default=None, metavar="SINCE")
|
||||||
parser.add_option("-v", "--verbose", dest="verbose", help="Debug output",
|
parser.add_option("-v", "--verbose", dest="verbose", help="Debug output",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue