documentacion y pistas de tipo en metodos

This commit is contained in:
Carlos Galindo 2023-09-08 12:15:30 +02:00
parent 03522304fa
commit bc4e7ed51d
4 changed files with 67 additions and 28 deletions

View file

@ -6,6 +6,7 @@ import pickle
def generate_songbook(songs, song_numbers, out_file, dj_engine):
'''Generate an HTML file with a sequence of songs.'''
# Build the list of songs
song_list = []
for n in song_numbers:
@ -24,6 +25,7 @@ def generate_songbook(songs, song_numbers, out_file, dj_engine):
def create_argparser():
'''Parse main's arguments.'''
parser = latex_scanner.create_argparser()
parser.add_argument("--songs", required=True, nargs='+', type=int, help="A list of song numbers to include.")
parser.add_argument("--output-file", required=False, nargs=1, default=["misa.html"],