]> git.lizzy.rs Git - nhentai.git/commitdiff
add sort options
authorRicterZ <ricterzheng@gmail.com>
Fri, 26 Jun 2020 05:28:10 +0000 (13:28 +0800)
committerRicterZ <ricterzheng@gmail.com>
Fri, 26 Jun 2020 05:28:10 +0000 (13:28 +0800)
nhentai/cmdline.py

index 71539919541862f1308f14e9974de61f1b3f3e25..093cc24fdb10dbcfa7ee662b02e3ae25a6ac8896 100644 (file)
@@ -56,12 +56,11 @@ def cmd_parser():
     # page options
     parser.add_option('--page', type='int', dest='page', action='store', default=1,
                       help='page number of search results')
-    parser.add_option('--max-page', type='int', dest='max_page', action='store', default=1,
-                      help='The max page when recursive download tagged doujinshi')
     parser.add_option('--page-range', type='string', dest='page_range', action='store',
                       help='page range of favorites.  e.g. 1,2-5,14')
     parser.add_option('--sorting', dest='sorting', action='store', default='date',
-                      help='sorting of doujinshi (date / popular)', choices=['date', 'popular'])
+                      help='sorting of doujinshi (recent / popular / popular-[today|week])',
+                      choices=['recent', 'popular', 'popular-today', 'popular-week'])
 
     # download options
     parser.add_option('--output', '-o', type='string', dest='output_dir', action='store', default='',