You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
The following minimal docopt program, which takes no parameters, panics when called without any arguments:
#![feature(plugin, core)]externcrate"rustc-serialize" as rustc_serialize;externcrate docopt;#[plugin]#[no_link]externcrate docopt_macros;docopt!(Args derive Debug,"Usage: misc [options]Options: -h, --help Show this message.");fnmain(){let _ = Args::docopt().decode().unwrap_or_else(|e| e.exit());}
The panic message is:
thread '<main>' panicked at 'I don't know how to read into a nil value.', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/docopt-0.6.33/src/lib.rs:944An unknown error occurred
This should not happen, because it makes it impossible to have a program take no arguments and read from stdin, with '[-]'.