oxedyne/fe2o3/fe2o3_pearlite/src/bin/pearlite-reader.rs
595 bytes, 1 run
created by r1870400018:60976, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | //! `pearlite-reader` -- the reader as a desktop application with no console. On Windows it is linked |
| 2 | //! for the GUI subsystem, so a double-click, or a `.prl` opened from Explorer, shows the window and |
| 3 | //! nothing else; the console `pearlite` binary keeps the subcommands. A document path, when the |
| 4 | //! desktop passes one, opens directly; otherwise the open-file dialog asks for one. |
| 5 | |
| 6 | #![windows_subsystem = "windows"] |
| 7 | |
| 8 | use oxedyne_fe2o3_pearlite::launch; |
| 9 | |
| 10 | use oxedyne_fe2o3_core::prelude::*; |
| 11 | |
| 12 | fn main() -> Outcome<()> { |
| 13 | launch::run(std::env::args_os().nth(1).map(std::path::PathBuf::from)) |
| 14 | } |