bla
This commit is contained in:
parent
c85ac83183
commit
d8c5a385c6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue