()
| 1945 | |
| 1946 | #[test] |
| 1947 | fn test_cli_skip_flags_exist() { |
| 1948 | // Verify that --skip-publish and --skip-generate flags are registered |
| 1949 | let cmd = cli(); |
| 1950 | |
| 1951 | let matches = cmd |
| 1952 | .clone() |
| 1953 | .get_matches_from(vec!["dev", "--skip-publish", "--skip-generate"]); |
| 1954 | |
| 1955 | assert!(matches.get_flag("skip_publish")); |
| 1956 | assert!(matches.get_flag("skip_generate")); |
| 1957 | } |
| 1958 | |
| 1959 | #[test] |
| 1960 | fn test_cli_env_flag_accepts_value() { |