@@ -61,7 +61,9 @@ <h2 id="usage">Usage</h2>
6161 """Parses cli arguments and creates a news file."""
6262 parser = argparse.ArgumentParser()
6363 parser.add_argument("news_text", help="Contents of the news file.")
64- parser.add_argument("--type", help="News type to create.", choices=[t.name for t in NewsType], default="feature")
64+ parser.add_argument(
65+ "-t", "--type", help="News type to create.", choices=[t.name for t in NewsType], default="feature"
66+ )
6567
6668 args = parser.parse_args()
6769 created_file = create_news_file(str(NEWS_DIR), args.news_text, NewsType[args.type])
@@ -100,7 +102,9 @@ <h2 class="section-title" id="header-functions">Functions</h2>
100102 """Parses cli arguments and creates a news file."""
101103 parser = argparse.ArgumentParser()
102104 parser.add_argument("news_text", help="Contents of the news file.")
103- parser.add_argument("--type", help="News type to create.", choices=[t.name for t in NewsType], default="feature")
105+ parser.add_argument(
106+ "-t", "--type", help="News type to create.", choices=[t.name for t in NewsType], default="feature"
107+ )
104108
105109 args = parser.parse_args()
106110 created_file = create_news_file(str(NEWS_DIR), args.news_text, NewsType[args.type])
0 commit comments