Commits

Mike Bayer committed 570f748

- add --short option to allow a shortened presentation

Comments (0)

Files changed (2)

sliderepl/core.py

         self.current = 0
         self.init_slide = None
         self.color = options.get('color', None)
+        self.short_pres = options.get('short', False)
         self._set_presentation(options.get('presentation', False))
         self.pending_exec = False
         self._letter_commands = {}
                         slide.no_clear = True
                     elif opt == 's':
                         slide.init = True
+                    elif opt == 'l' and deck.short_pres:
+                        slide = None
+                        break
 
     def show_banner(self):
         print(self.banner)

sliderepl/main.py

     parser.add_argument("-q", "--quick", action="store_true",
                         default=True,
                       help="'Enter' key is a shortcut for 'next'")
+    parser.add_argument("-s", "--short", action="store_true",
+                        default=False,
+                      help="Run the 'short' version of the slides "
+                        "(skip those with 'l' flag)")
     parser.add_argument("--color", dest="color",
                         default=color_default,
                       choices=('never', 'auto', 'light', 'dark'),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.