@@ -119,22 +119,23 @@ def main():
119119 description = 'Run Jupyter notebooks.' )
120120 parser .add_argument ('notebook' , type = str , nargs = '*' , default = [],
121121 help = 'Notebook to test.' )
122- parser .add_argument ('--skip' , type = str , action = 'append' , default = [],
123- help = 'Notebooks to skip.' )
122+ parser .add_argument ('-e' , '--exclude' , metavar = 'PATTERN' , type = str ,
123+ action = 'append' , default = [],
124+ help = 'Notebooks to exclude.' )
124125 parser .add_argument ('--dry-run' , action = 'store_true' ,
125126 help = 'Find notebooks but do not do anything' )
126- parser .add_argument ('--file' , type = argparse .FileType ('r' ),
127+ parser .add_argument ('-f' , '- -file' , type = argparse .FileType ('r' ),
127128 help = 'Read notebooks from a file.' )
128129
129130 args = parser .parse_args ()
130131
131132 notebooks = read_notebooks_from_file (args .file ) + args .notebook
132133
133- skip = match_by_pattern (notebooks , args .skip )
134+ excluded = match_by_pattern (notebooks , args .exclude )
134135
135136 summary = []
136137 for notebook in notebooks :
137- if notebook in skip :
138+ if notebook in excluded :
138139 result = notebook , None
139140 else :
140141 result = notebook , check_notebook (notebook , dry_run = args .dry_run )
0 commit comments