This commit is contained in:
maste9 2015-01-29 23:17:20 +01:00 committed by Homer S
parent c85ac83183
commit d8c5a385c6
1 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,12 @@ parser_draft.add_argument('nameorid', choices=['name','id'], help='define an alp
parser_article = subparsers.add_parser('article', help='import, list, edit or delete article')
args = parser.parse_args()
print(vars(args))
print(args)
args_blog = parser_blog.parse_args()
print(args_blog)
args_draft = parser_draft.parse_args()
print(args_draft)
args_article = parser_article.parse_args()
# set path to blog
try:
@ -117,6 +122,6 @@ def update_blog():
with open(blogIndex,"w", encoding=l10nconf['BLOG_CHARSET']) as f:
print(tmpIndex, file=f)
if vars(args)['action'] == 'update':
if vars(args)['update']:
print("Updating your block.")
update_blog()