diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-01-15 11:36:47 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-01-15 11:36:47 +0100 |
commit | ef57e7fba4a20183daa6d02993920adf0d66c8eb (patch) | |
tree | b83b4a89689faf85693b2bb4426c208b70d01342 /sq | |
parent | cf2396f57b61052fbc51a030b846e0e98f35a586 (diff) |
sq: Warn about the CLI interface not being stable.
Diffstat (limited to 'sq')
-rw-r--r-- | sq/src/sq.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sq/src/sq.rs b/sq/src/sq.rs index eef1e6dc..3a97bee0 100644 --- a/sq/src/sq.rs +++ b/sq/src/sq.rs @@ -237,6 +237,11 @@ pub struct Config { } fn main() -> Result<()> { + if term_size::dimensions_stdout().is_none() { + eprintln!("\nWARNING: sq does not have a stable CLI interface. \ + Use with caution in scripts.\n"); + } + let policy = &mut P::new(); let matches = sq_cli::build().get_matches(); |